Skip to content

Commit

Permalink
editor: Avoid prompt redisplay on completion when there is no indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
belak authored and Ayrton Araujo committed May 24, 2018
1 parent 6dee414 commit 6d3d21c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/editor/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,14 @@ zle -N expand-dot-to-parent-directory-path
function expand-or-complete-with-indicator {
local indicator
zstyle -s ':prezto:module:editor:info:completing' format 'indicator'

# This is included to work around a bug in zsh which shows up when interacting
# with multi-line prompts.
if [[ -z "$indicator" ]]; then
zle expand-or-complete
return
fi

print -Pn "$indicator"
zle expand-or-complete
zle redisplay
Expand Down

0 comments on commit 6d3d21c

Please sign in to comment.