Fix multi-line history to correctly handle line breaks
This commit is contained in:
@@ -64,8 +64,7 @@ fzf_history_search() {
|
|||||||
else
|
else
|
||||||
BUFFER="${candidates[@]}"
|
BUFFER="${candidates[@]}"
|
||||||
fi
|
fi
|
||||||
BUFFER="${BUFFER[@]/(#b)(?)\\n/$match[1]
|
BUFFER=$(printf "${BUFFER[@]//\\\\n/\\\\\\n}")
|
||||||
}"
|
|
||||||
zle vi-fetch-history -n $BUFFER
|
zle vi-fetch-history -n $BUFFER
|
||||||
if [ -n "${ZSH_FZF_HISTORY_SEARCH_END_OF_LINE}" ]; then
|
if [ -n "${ZSH_FZF_HISTORY_SEARCH_END_OF_LINE}" ]; then
|
||||||
zle end-of-line
|
zle end-of-line
|
||||||
|
|||||||
Reference in New Issue
Block a user