mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-17 12:41:14 +02:00
Holger Weiss: 57248: fix anchoring for vi searches
This commit is contained in:
parent
817000920f
commit
c88fd11377
2 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,9 @@
|
|||
2009-09-06 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* Holger Weiss <holger@CIS.FU-Berlin.DE>: 27248:
|
||||
Src/Zle/zle_hist.c: anchoring of vi search was wrong because
|
||||
of reversed prefix matching.
|
||||
|
||||
* 27247: Functions/Misc/zmv: checking for "**/" was wrong.
|
||||
|
||||
2009-09-05 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
@ -12125,5 +12129,5 @@
|
|||
|
||||
*****************************************************
|
||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||
* $Revision: 1.4769 $
|
||||
* $Revision: 1.4770 $
|
||||
*****************************************************
|
||||
|
|
|
@ -1942,7 +1942,7 @@ virepeatsearch(UNUSED(char **args))
|
|||
continue;
|
||||
zt = GETZLETEXT(he);
|
||||
if (zlinecmp(zt, zlemetaline) &&
|
||||
(*visrchstr == '^' ? strpfx(zt, visrchstr + 1) :
|
||||
(*visrchstr == '^' ? strpfx(visrchstr + 1, zt) :
|
||||
zlinefind(zt, 0, visrchstr, 1, 1) != 0)) {
|
||||
if (--n <= 0) {
|
||||
unmetafy_line();
|
||||
|
|
Loading…
Reference in a new issue