diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh index 5ad44b69a79..2abb7bbbe56 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 - LBUFFER="${selected:1}" + zle vi-fetch-history -n $num else # selected is a custom query, not from history LBUFFER="${selected[@]}" fi