1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 13:02:32 +08:00

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
}