Skip to content

Commit

Permalink
fix(zsh): update method to replace history
Browse files Browse the repository at this point in the history
  • Loading branch information
danztran authored Jan 2, 2024
1 parent f294399 commit b96d05e
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 @@ -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
Expand Down

0 comments on commit b96d05e

Please sign in to comment.