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 committed Dec 1, 2017
1 parent 043d09b commit 8ed2c78
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 8ed2c78

Please sign in to comment.