mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 18:38:00 +00:00
editor: Avoid prompt redisplay on completion when there is no indicator
Refs #1512
This commit is contained in:
parent
043d09bbfe
commit
8ed2c78de8
@ -211,6 +211,14 @@ 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'
|
||||||
|
|
||||||
|
# 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"
|
print -Pn "$indicator"
|
||||||
zle expand-or-complete
|
zle expand-or-complete
|
||||||
zle redisplay
|
zle redisplay
|
||||||
|
Loading…
Reference in New Issue
Block a user