From d15f36ab5b7b2a15e9fc613de59e6ff1d586a7c7 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Thu, 29 Jun 2000 07:10:31 +0000 Subject: change suffix style to still do expansion if the suffix contains something to expand (12115) --- ChangeLog | 4 ++++ Completion/Core/_expand | 2 +- Doc/Zsh/compsys.yo | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 126e81a3a..3eaf88a56 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2000-06-29 Sven Wischnowsky + * 12115: Completion/Core/_expand, Doc/Zsh/compsys.yo: change + suffix style to still do expansion if the suffix contains + something to expand + * 12114: Completion/Core/_main_complete, Doc/Zsh/compsys.yo: even more fun with the menu style (no=num, yes=long-list, reverse meaning of yes=num) diff --git a/Completion/Core/_expand b/Completion/Core/_expand index d0f8d8327..12c31860b 100644 --- a/Completion/Core/_expand +++ b/Completion/Core/_expand @@ -36,7 +36,7 @@ fi [[ "$word" = *\$\{[^\}]# ]] && return 1 zstyle -T ":completion:${curcontext}:" suffix && - [[ "$word" = (\~*/*|\$[a-zA-Z0-9_\[\]]##[^a-zA-Z0-9_\[\]]*|\$\{*\}?*) ]] && + [[ "$word" = (\~*/|\$(|[=~#^+])[a-zA-Z0-9_\[\]]##[^a-zA-Z0-9_\[\]]|\$\{*\}?)[^\$\{\}\(\)\<\>?^*#~]# ]] && return 1 zstyle -t ":completion:${curcontext}:" accept-exact || diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo index a4f3f2214..e9b5ca9fe 100644 --- a/Doc/Zsh/compsys.yo +++ b/Doc/Zsh/compsys.yo @@ -1888,7 +1888,8 @@ This is used by the tt(_expand) completer if the word starts with a tilde or parameter expansion. If it is set to `true', the word will only be expanded if it doesn't have a suffix, i.e. if it is something like `tt(~foo)' or `tt($foo)', but not if it is `tt(~foo/)' or -`tt($foo/bar)'. The default for this style is `true'. +`tt($foo/bar)', unless that suffix itself contains characters eligible +for expansion. The default for this style is `true'. ) kindex(tag-order, completion style) item(tt(tag-order))( -- cgit 1.4.1