From 488d73c07dbbd2f2a2c6ee934aee71d4aa776c3a Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Wed, 9 Nov 2016 16:53:23 +0100 Subject: 39884: fix history-beginning-search-menu for history lines containing a pipe character --- Functions/Zle/history-beginning-search-menu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Functions') diff --git a/Functions/Zle/history-beginning-search-menu b/Functions/Zle/history-beginning-search-menu index 105518102..0e1bbc734 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] -- cgit 1.4.1