1
0
Fork 0

[master] Do not redisplay if there is no completion indicator.

pull/1325/head
Yutian Li 8 years ago
parent 658fffb3a6
commit 1e24b92825

@ -201,9 +201,13 @@ zle -N expand-dot-to-parent-directory-path
function expand-or-complete-with-indicator { function expand-or-complete-with-indicator {
local indicator local indicator
zstyle -s ':prezto:module:editor:info:completing' format 'indicator' zstyle -s ':prezto:module:editor:info:completing' format 'indicator'
print -Pn "$indicator" if [[ -z "${indicator}" ]]; then
zle expand-or-complete zle expand-or-complete
zle redisplay else
print -Pn "$indicator"
zle expand-or-complete
zle redisplay
fi
} }
zle -N expand-or-complete-with-indicator zle -N expand-or-complete-with-indicator

Loading…
Cancel
Save