Fix fzf-history-widget (#48)

pull/55/head
Junegunn Choi 10 years ago
parent edcd7c6aa6
commit ed13fc8618

@ -216,7 +216,7 @@ bindkey '\ec' fzf-cd-widget
# CTRL-R - Paste the selected command from history into the command line
fzf-history-widget() {
LBUFFER=$(fc -l 1 | fzf +s | sed "s/ *[0-9]*\*\? *//")
LBUFFER=$(fc -l 1 | fzf +s | sed "s/ *[0-9*]* *//")
zle redisplay
}
zle -N fzf-history-widget

Loading…
Cancel
Save