mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-26 12:27:58 +00:00
[zsh] Fix #404 - Escape $ in $LBUFFER
This commit is contained in:
parent
90d32bd756
commit
f1cd0e2daf
@ -38,7 +38,7 @@ bindkey '\ec' fzf-cd-widget
|
||||
# CTRL-R - Paste the selected command from history into the command line
|
||||
fzf-history-widget() {
|
||||
local selected num
|
||||
selected=( $(fc -l 1 | $(__fzfcmd) +s --tac +m -n2..,.. --tiebreak=index --toggle-sort=ctrl-r -q "$LBUFFER") )
|
||||
selected=( $(fc -l 1 | $(__fzfcmd) +s --tac +m -n2..,.. --tiebreak=index --toggle-sort=ctrl-r -q "${LBUFFER//$/\\$}") )
|
||||
if [ -n "$selected" ]; then
|
||||
num=$selected[1]
|
||||
if [ -n "$num" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user