diff options
author | Robby Russell <robby@planetargon.com> | 2015-09-19 09:01:55 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2015-09-19 09:01:55 -0700 |
commit | 9bd88bb9aaf12e62b100fd68b95eb530cf953614 (patch) | |
tree | 7b995bce64cceea061034b12142a31844579b704 /lib | |
parent | 4f1caf095510140f9d18636eeff95e9e38727698 (diff) | |
parent | b42efeb87ebdcb89510b8ffbcf210494f194109e (diff) | |
download | zsh-9bd88bb9aaf12e62b100fd68b95eb530cf953614.tar.gz zsh-9bd88bb9aaf12e62b100fd68b95eb530cf953614.tar.bz2 zsh-9bd88bb9aaf12e62b100fd68b95eb530cf953614.zip |
Merge pull request #4251 from mcornella/fix-completion-dots
Fix completion waiting dots function
Diffstat (limited to 'lib')
-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 } |