summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2015-09-19 09:01:55 -0700
committerRobby Russell <robby@planetargon.com>2015-09-19 09:01:55 -0700
commit9bd88bb9aaf12e62b100fd68b95eb530cf953614 (patch)
tree7b995bce64cceea061034b12142a31844579b704 /lib
parent4f1caf095510140f9d18636eeff95e9e38727698 (diff)
parentb42efeb87ebdcb89510b8ffbcf210494f194109e (diff)
downloadzsh-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.zsh8
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
}