1
0
Fork 0
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:
Sven Wischnowsky 2001-04-30 11:09:49 +00:00
parent cd5e39ef50
commit 6757c3c734
2 changed files with 7 additions and 1 deletions

View file

@ -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 ||