mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-08-22 18:41:00 +02:00
39884: fix history-beginning-search-menu for history lines containing a pipe character
This commit is contained in:
parent
dae3116026
commit
488d73c07d
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2016-11-09 Oliver Kiddle <opk@zsh.org>
|
||||||
|
|
||||||
|
* 39884: Functions/Zle/history-beginning-search-menu:
|
||||||
|
fix for history lines containing a pipe character
|
||||||
|
|
||||||
2016-11-09 Barton E. Schaefer <schaefer@zsh.org>
|
2016-11-09 Barton E. Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
* 39882: Doc/Zsh/expn.yo: mention ${name:/pattern/replacement}
|
* 39882: Doc/Zsh/expn.yo: mention ${name:/pattern/replacement}
|
||||||
|
|
|
@ -112,7 +112,7 @@ fi
|
||||||
# go to the last one. This allows accept-line-and-down-history etc.
|
# go to the last one. This allows accept-line-and-down-history etc.
|
||||||
# to work.
|
# to work.
|
||||||
local -a lines
|
local -a lines
|
||||||
local matchq=${matches[$chars]//(#m)[\][()\\*?#<>~^]/\\$MATCH}
|
local matchq=${matches[$chars]//(#m)[\][|()\\*?#<>~^]/\\$MATCH}
|
||||||
lines=(${(kon)history[(R)$matchq]})
|
lines=(${(kon)history[(R)$matchq]})
|
||||||
HISTNO=$lines[-1]
|
HISTNO=$lines[-1]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue