diff options
author | Andrew Janke <andrew@apjanke.net> | 2015-09-19 15:07:36 -0400 |
---|---|---|
committer | Andrew Janke <andrew@apjanke.net> | 2015-09-19 15:07:36 -0400 |
commit | 6cddf7202b8ef5c2eb2dfc081d870dc9e751d646 (patch) | |
tree | be3fe162edbc04946eea014a3612280d4909dc1e /lib/completion.zsh | |
parent | 82c76f6b5c2718622a532fb759231e8d24171413 (diff) | |
parent | cbc1a0806e910f7b4eed07b992d3d88ff7cb1162 (diff) | |
download | zsh-6cddf7202b8ef5c2eb2dfc081d870dc9e751d646.tar.gz zsh-6cddf7202b8ef5c2eb2dfc081d870dc9e751d646.tar.bz2 zsh-6cddf7202b8ef5c2eb2dfc081d870dc9e751d646.zip |
Merge branch 'master' into installer-portable-colors
Diffstat (limited to 'lib/completion.zsh')
-rw-r--r-- | lib/completion.zsh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/completion.zsh b/lib/completion.zsh index 452c0dfe7..f5b292471 100644 --- a/lib/completion.zsh +++ b/lib/completion.zsh @@ -58,9 +58,13 @@ zstyle ':completion:*:*:*:users' ignored-patterns \ # ... unless we really want to. zstyle '*' single-ignored show -if [ "x$COMPLETION_WAITING_DOTS" = "xtrue" ]; then +if [[ $COMPLETION_WAITING_DOTS = true ]]; then expand-or-complete-with-dots() { - echo -n "\e[31m......\e[0m" + # 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 + zle expand-or-complete zle redisplay } |