浏览代码

lib: bind to all keymaps when COMPLETION_WAITING_DOTS is set

Fixes #9050
Marc Cornellà 3 年之前
父节点
当前提交
cf347ef3e4
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      lib/completion.zsh

+ 4 - 1
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