summaryrefslogtreecommitdiff
path: root/lib/completion.zsh
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2020-08-04 17:30:07 +0200
committerMarc Cornellà <marc.cornella@live.com>2020-08-04 17:30:07 +0200
commitcf347ef3e43eabde5ae86e17d25690ebbeef5e6b (patch)
tree4e1275de6bdd19f6633c06fa7e3fe75fa3a08b91 /lib/completion.zsh
parente04564d52880b39032ca6a1841a48138db185aec (diff)
downloadzsh-cf347ef3e43eabde5ae86e17d25690ebbeef5e6b.tar.gz
zsh-cf347ef3e43eabde5ae86e17d25690ebbeef5e6b.tar.bz2
zsh-cf347ef3e43eabde5ae86e17d25690ebbeef5e6b.zip
lib: bind to all keymaps when COMPLETION_WAITING_DOTS is set
Fixes #9050
Diffstat (limited to 'lib/completion.zsh')
-rw-r--r--lib/completion.zsh5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/completion.zsh b/lib/completion.zsh
index 47a4ed60f..2b62785d5 100644
--- a/lib/completion.zsh
+++ b/lib/completion.zsh
@@ -65,7 +65,10 @@ if [[ $COMPLETION_WAITING_DOTS = true ]]; then
zle redisplay
}
zle -N expand-or-complete-with-dots
- bindkey "^I" expand-or-complete-with-dots
+ # Set the function as the default tab completion widget
+ bindkey -M emacs "^I" expand-or-complete-with-dots
+ bindkey -M viins "^I" expand-or-complete-with-dots
+ bindkey -M vicmd "^I" expand-or-complete-with-dots
fi
# automatically load bash completion functions