mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-29 17:31:02 +01: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
|
|
@ -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…
Add table
Add a link
Reference in a new issue