Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: history-beginning-search-menu fails for pipes



When searching for something else, I found a forum post from someone
complaining that history-beginning-search-menu doesn't work for
pipes. I can't find the post again now but anyway, it looks like |
is missing from the characters the function quotes.

Oliver

diff --git a/Functions/Zle/history-beginning-search-menu b/Functions/Zle/history-beginning-search-menu
index 1055181..0e1bbc7 100644
--- a/Functions/Zle/history-beginning-search-menu
+++ b/Functions/Zle/history-beginning-search-menu
@@ -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]
 



Messages sorted by: Reverse Date, Date, Thread, Author