Skip to content

Commit

Permalink
Update shell/key-bindings.zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn authored Jan 5, 2024
1 parent 9d33367 commit 15d30d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/key-bindings.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ fzf-history-widget() {
local ret=$?
if [ -n "$selected" ]; then
num=$(awk '{print $1}' <<< "$selected")
if [[ "$num" =~ ^[0-9]+$ ]]; then
if [[ "$num" =~ ^[1-9][0-9]*$ ]]; then
zle vi-fetch-history -n $num
else # selected is a custom query, not from history
LBUFFER="$selected"
Expand Down

0 comments on commit 15d30d9

Please sign in to comment.