mirror of
https://github.com/joshskidmore/zsh-fzf-history-search.git
synced 2026-09-10 07:06:21 -04:00
Fix multi-line history to correctly handle line breaks
This commit is contained in:
parent
de4c3c7a8a
commit
99211d7e40
|
|
@ -64,8 +64,7 @@ fzf_history_search() {
|
|||
else
|
||||
BUFFER="${candidates[@]}"
|
||||
fi
|
||||
BUFFER="${BUFFER[@]/(#b)(?)\\n/$match[1]
|
||||
}"
|
||||
BUFFER=$(printf "${BUFFER[@]//\\\\n/\\\\\\n}")
|
||||
zle vi-fetch-history -n $BUFFER
|
||||
if [ -n "${ZSH_FZF_HISTORY_SEARCH_END_OF_LINE}" ]; then
|
||||
zle end-of-line
|
||||
|
|
|
|||
Loading…
Reference in a new issue