fix(zsh): update method to replace history

pull/3557/head
danztran 5 months ago committed by GitHub
parent f294399780
commit b96d05e77e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save