diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2009-03-19 16:13:48 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2009-03-19 16:13:48 +0000 |
commit | 43c1f052cea27589f52137668fadba255c284877 (patch) | |
tree | 620e7a0991de5254aaf8e39a130db9b397a378ff /Completion | |
parent | cb6856d115b26fbe6d78e3e730a57e9c0e05e8b9 (diff) | |
download | zsh-43c1f052cea27589f52137668fadba255c284877.tar.gz zsh-43c1f052cea27589f52137668fadba255c284877.tar.xz zsh-43c1f052cea27589f52137668fadba255c284877.zip |
26756: handle completion following :s modifier
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Zsh/Type/_history_modifiers | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Completion/Zsh/Type/_history_modifiers b/Completion/Zsh/Type/_history_modifiers index a97e38d20..f8dcd45ae 100644 --- a/Completion/Zsh/Type/_history_modifiers +++ b/Completion/Zsh/Type/_history_modifiers @@ -31,11 +31,11 @@ while true; do fi delim=$PREFIX[1] compset -p 1 - if ! compset "[^$delim]#$delim[^$delim]#$delim"; then - if compset "[^$delim]#$delim"; then - _message original string + if ! compset -P "[^${delim}]#${delim}[^${delim}]#${delim}"; then + if compset -P "[^${delim}]#${delim}"; then + _message "replacement string" else - _message replacement string + _message "original string" fi return fi |