From 7d77bc95b2ba7276cf430a989e9b4000c72ba765 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 1 Aug 2006 20:28:35 +0000 Subject: 22574: more history-beginning-search-menu fixes --- Functions/Zle/history-beginning-search-menu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Functions') diff --git a/Functions/Zle/history-beginning-search-menu b/Functions/Zle/history-beginning-search-menu index 46a6a776b..dadcc40cb 100644 --- a/Functions/Zle/history-beginning-search-menu +++ b/Functions/Zle/history-beginning-search-menu @@ -40,12 +40,12 @@ local -a display local search=$LBUFFER +search=${search//(#m)[\][()\\*?#<>~]/\\$MATCH/} if [[ $WIDGET = *-space* ]]; then # We need to quote metacharacters in the search string # since they are otherwise active in the reverse subscript. # We need to avoid quoting other characters since they aren't # and just stay quoted, rather annoyingly. - search=${search//(#m)[\][()\\*?#<>]/\\$MATCH/} search=${search// /*} fi @@ -112,7 +112,7 @@ fi # go to the last one. This allows accept-line-and-down-history etc. # to work. local -a lines -local matchq=${matches[$chars]//(#m)[\][()\\*?#<>]/\\$MATCH} +local matchq=${matches[$chars]//(#m)[\][()\\*?#<>~]/\\$MATCH} lines=(${(kon)history[(R)$matchq]}) HISTNO=$lines[-1] -- cgit 1.4.1