zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: history-beginning-search-menu fails for pipes
@ 2016-11-08 23:55 Oliver Kiddle
  0 siblings, 0 replies; only message in thread
From: Oliver Kiddle @ 2016-11-08 23:55 UTC (permalink / raw)
  To: Zsh workers

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]
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-11-09  8:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-08 23:55 PATCH: history-beginning-search-menu fails for pipes Oliver Kiddle

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).