diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh index 2abb7bbbe56..5ad44b69a79 100644 --- a/shell/key-bindings.zsh +++ b/shell/key-bindings.zsh @@ -104,7 +104,7 @@ fzf-history-widget() { if [ -n "$selected" ]; then num=$selected[1] if [[ "$num" =~ ^-?[0-9]+$ ]]; then - zle vi-fetch-history -n $num + LBUFFER="${selected:1}" else # selected is a custom query, not from history LBUFFER="${selected[@]}" fi