3f42700c0d65cf26470d1e165b8ed80dfff9efca

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

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

Diff

 1diff --git a/lib/completion.zsh b/lib/completion.zsh
 2index a3873cd08d68ddd5218bf85f565e1a37bcc8d8fc..2b62785d50e798d4a6e7b25d6e954bafbb65a7a3 100644
 3--- a/lib/completion.zsh
 4+++ b/lib/completion.zsh
 5@@ -1,7 +1,7 @@
 6 # fixme - the load process here seems a bit bizarre
 7 zmodload -i zsh/complist
 8 
 9-WORDCHARS='_-'
10+WORDCHARS=''
11 
12 unsetopt menu_complete   # do not autoselect the first completion entry
13 unsetopt flowcontrol