mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-23 15:18:29 +00:00
parent
8a2c41e183
commit
e90bb7169c
@ -103,8 +103,8 @@ fzf-history-widget() {
|
||||
local ret=$?
|
||||
if [ -n "$selected" ]; then
|
||||
num=$(awk '{print $1}' <<< "$selected")
|
||||
if [[ "$num" =~ ^[1-9][0-9]*$ ]]; then
|
||||
zle vi-fetch-history -n $num
|
||||
if [[ "$num" =~ '^[1-9][0-9]*\*?$' ]]; then
|
||||
zle vi-fetch-history -n ${num%\*}
|
||||
else # selected is a custom query, not from history
|
||||
LBUFFER="$selected"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user