浏览代码

Revert "lib: treat _ and - as part of a word"

This reverts commit 50dc4ab3574f4e265dff816d8d9a0195cd260152.

The community has spoken:
- https://github.com/ohmyzsh/ohmyzsh/issues/9367
- https://github.com/ohmyzsh/ohmyzsh/issues/8743

Fixes #9367
Marc Cornellà 3 年之前
父节点
当前提交
3f42700c0d
共有 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