Skip to content
Myr

[zsh] Properly reset prompt after completion (#2318)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ruslan Sayfutdinov · committed by GitHub · parent cc56403 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:shell/completion.zsh+1 added-1 removed
209 unmodified lines
210 matches=$(FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse --bind=ctrl-z:ignore $FZF_DEFAULT_OPTS $FZF_COMPLETION_OPTS $str_arg" __fzf_comprun "$cmd" "${args[@]}" -q "${(Q)prefix}" < "$fifo" | $post | tr '\n' ' ')211 if [ -n "$matches" ]; then212 LBUFFER="$lbuf$matches"213 fi214 zle reset-prompt214 command rm -f "$fifo"215}216217_fzf_complete_telnet() {
82 unmodified lines
300 [ -n "${tokens[-1]}" ] && lbuf=${lbuf:0:-${#tokens[-1]}}301302 if eval "type _fzf_complete_${cmd} > /dev/null"; then303 prefix="$prefix" eval _fzf_complete_${cmd} ${(q)lbuf}304 zle reset-prompt305 elif [ ${d_cmds[(i)$cmd]} -le ${#d_cmds} ]; then306 _fzf_dir_completion "$prefix" "$lbuf"307 else308 _fzf_path_completion "$prefix" "$lbuf"
21 unmodified lines