Skip to content
Myr

[zsh] Fix multiline prompt issue with 'zle reset-prompt' (#1397)

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

Close #867 Close #1256

authored by Paul Frybarger · committed by Junegunn Choi · parent 0e06e29 · Browse files · 2 files+5 added−11 removed
This commit

State

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

Diff stats

2 files+5 added−11 removed

  • other:+5 added−11 removed

2 files+5 added−11 removed

modified:shell/completion.zsh+3 added-6 removed
modified:shell/key-bindings.zsh+2 added-5 removed
27 unmodified lines
2829fzf-file-widget() {30 LBUFFER="${LBUFFER}$(__fsel)"31 local ret=$?32 zle redisplay33 typeset -f zle-line-init >/dev/null && zle zle-line-init32 zle reset-prompt33 return $ret34}35zle -N fzf-file-widget36bindkey '^T' fzf-file-widget
20 unmodified lines
57 fi58 cd "$dir"59 local ret=$?60 zle fzf-redraw-prompt62 typeset -f zle-line-init >/dev/null && zle zle-line-init61 return $ret62}63zle -N fzf-cd-widget64bindkey '\ec' fzf-cd-widget
10 unmodified lines
75 if [ -n "$num" ]; then76 zle vi-fetch-history -n $num77 fi78 fi81 zle redisplay82 typeset -f zle-line-init >/dev/null && zle zle-line-init79 zle reset-prompt80 return $ret81}82zle -N fzf-history-widget83bindkey '^R' fzf-history-widget
2 unmodified lines