[master] Do not redisplay if there is no completion indicator.
This commit is contained in:
parent
658fffb3a6
commit
1e24b92825
1 changed files with 7 additions and 3 deletions
|
@ -201,9 +201,13 @@ 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'
|
||||
print -Pn "$indicator"
|
||||
zle expand-or-complete
|
||||
zle redisplay
|
||||
if [[ -z "${indicator}" ]]; then
|
||||
zle expand-or-complete
|
||||
else
|
||||
print -Pn "$indicator"
|
||||
zle expand-or-complete
|
||||
zle redisplay
|
||||
fi
|
||||
}
|
||||
zle -N expand-or-complete-with-indicator
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue