lib: substitute COMPLETION_WAITING_DOTS for ellipsis

Closes #8342
This commit is contained in:
Marc Cornellà 2020-08-02 20:48:53 +02:00
parent 4ab273e19a
commit f6bc949c05

View File

@ -60,11 +60,7 @@ zstyle '*' single-ignored show
if [[ $COMPLETION_WAITING_DOTS = true ]]; then
expand-or-complete-with-dots() {
# toggle line-wrapping off and back on again
[[ -n "$terminfo[rmam]" && -n "$terminfo[smam]" ]] && echoti rmam
print -Pn "%{%F{red}......%f%}"
[[ -n "$terminfo[rmam]" && -n "$terminfo[smam]" ]] && echoti smam
print -Pn "%F{red}…%f"
zle expand-or-complete
zle redisplay
}