mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 22:11:54 +02:00
fixelt for the test for the suffix style; if word contains only a tilde, don't try to expand it (14160)
This commit is contained in:
parent
cd5e39ef50
commit
6757c3c734
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2001-04-30 Sven Wischnowsky <wischnow@zsh.org>
|
||||
|
||||
* 14160: Completion/Base/Completer/_expand: fixelt for the test
|
||||
for the suffix style; if word contains only a tilde, don't try
|
||||
to expand it
|
||||
|
||||
2001-04-30 Andrej Borsenkow <bor@zsh.org>
|
||||
|
||||
* Bart: 14144 (modified): Src/Modules/stat.c
|
||||
|
|
|
@ -34,7 +34,7 @@ fi
|
|||
|
||||
zstyle -T ":completion:${curcontext}:" suffix &&
|
||||
[[ "$word" = (\~*/|*\$(|[=~#^+])[a-zA-Z0-9_\[\]]##[^a-zA-Z0-9_\[\]]|*\$\{*\}?) &&
|
||||
"${(e)word}" != *[][^~*?\<\>\{\}\|]* ]] &&
|
||||
"${(e)word}" != *[][^*?\(\)\<\>\{\}\|]* ]] &&
|
||||
return 1
|
||||
|
||||
zstyle -t ":completion:${curcontext}:" accept-exact ||
|
||||
|
|
Loading…
Reference in a new issue