diff options
| author | Paul Frybarger <pfrybarger@gmail.com> | 2018-10-05 03:56:26 +0200 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2018-10-05 10:56:26 +0900 |
| commit | fd8d371ac790bfb72b904b52bf3f28974a4d8b74 (patch) | |
| tree | 166bc52ee51c27ea451242c45880b98d64a95fe8 /shell/completion.zsh | |
| parent | 0e06e298d4d11bad051b614808305ec7486d81aa (diff) | |
| download | fzf-fd8d371ac790bfb72b904b52bf3f28974a4d8b74.tar.gz | |
[zsh] Fix multiline prompt issue with 'zle reset-prompt' (#1397)
Close #867
Close #1256
Diffstat (limited to 'shell/completion.zsh')
| -rw-r--r-- | shell/completion.zsh | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/shell/completion.zsh b/shell/completion.zsh index 4df21b33..f6052592 100644 --- a/shell/completion.zsh +++ b/shell/completion.zsh @@ -60,8 +60,7 @@ __fzf_generic_path_completion() { if [ -n "$matches" ]; then LBUFFER="$lbuf$matches$tail" fi - zle redisplay - typeset -f zle-line-init >/dev/null && zle zle-line-init + zle reset-prompt break fi dir=$(dirname "$dir") @@ -100,8 +99,7 @@ _fzf_complete() { if [ -n "$matches" ]; then LBUFFER="$lbuf$matches" fi - zle redisplay - typeset -f zle-line-init >/dev/null && zle zle-line-init + zle reset-prompt command rm -f "$fifo" } @@ -165,8 +163,7 @@ fzf-completion() { if [ -n "$matches" ]; then LBUFFER="$LBUFFER$matches" fi - zle redisplay - typeset -f zle-line-init >/dev/null && zle zle-line-init + zle reset-prompt # Trigger sequence given elif [ ${#tokens} -gt 1 -a "$tail" = "$trigger" ]; then d_cmds=(${=FZF_COMPLETION_DIR_COMMANDS:-cd pushd rmdir}) |
