浏览代码

lib: treat _ and - as part of a word

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

+ 1 - 1
lib/completion.zsh

@@ -1,7 +1,7 @@
 # fixme - the load process here seems a bit bizarre
 zmodload -i zsh/complist
 
-WORDCHARS=''
+WORDCHARS='_-'
 
 unsetopt menu_complete   # do not autoselect the first completion entry
 unsetopt flowcontrol