cf347ef3e43eabde5ae86e17d25690ebbeef5e6b
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
lib: bind to all keymaps when COMPLETION_WAITING_DOTS is set
Fixes #9050
Diff
1diff --git a/lib/completion.zsh b/lib/completion.zsh
2index 47a4ed60f913f1278b5c734e901ab001d09db5db..2b62785d50e798d4a6e7b25d6e954bafbb65a7a3 100644
3--- a/lib/completion.zsh
4+++ b/lib/completion.zsh
5@@ -65,7 +65,10 @@ if [[ $COMPLETION_WAITING_DOTS = true ]]; then
6 zle redisplay
7 }
8 zle -N expand-or-complete-with-dots
9- bindkey "^I" expand-or-complete-with-dots
10+ # Set the function as the default tab completion widget
11+ bindkey -M emacs "^I" expand-or-complete-with-dots
12+ bindkey -M viins "^I" expand-or-complete-with-dots
13+ bindkey -M vicmd "^I" expand-or-complete-with-dots
14 fi
15
16 # automatically load bash completion functions