diff options
author | Ruslan Sayfutdinov <ruslan@sayfutdinov.com> | 2021-01-12 19:09:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-13 04:09:34 +0900 |
commit | 9ddf5c72be852525c64f92bd826f8700d5cd9e36 (patch) | |
tree | a279b37990a27510c7623ecc06a1db54ae94ecf6 /shell | |
parent | cc5640326b6f49bddc8c861453e2fe2240dbb431 (diff) |
[zsh] Properly reset prompt after completion (#2318)
Diffstat (limited to 'shell')
-rw-r--r-- | shell/completion.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/completion.zsh b/shell/completion.zsh index 4df849ff..f12afca1 100644 --- a/shell/completion.zsh +++ b/shell/completion.zsh @@ -211,7 +211,6 @@ _fzf_complete() { if [ -n "$matches" ]; then LBUFFER="$lbuf$matches" fi - zle reset-prompt command rm -f "$fifo" } @@ -302,6 +301,7 @@ fzf-completion() { if eval "type _fzf_complete_${cmd} > /dev/null"; then prefix="$prefix" eval _fzf_complete_${cmd} ${(q)lbuf} + zle reset-prompt elif [ ${d_cmds[(i)$cmd]} -le ${#d_cmds} ]; then _fzf_dir_completion "$prefix" "$lbuf" else |