1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-18 13:01:05 +02:00

Holger Weiss: 57248: fix anchoring for vi searches

This commit is contained in:
Peter Stephenson 2009-09-06 21:37:14 +00:00
parent 817000920f
commit c88fd11377
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,9 @@
2009-09-06 Peter Stephenson <p.w.stephenson@ntlworld.com> 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. * 27247: Functions/Misc/zmv: checking for "**/" was wrong.
2009-09-05 Peter Stephenson <p.w.stephenson@ntlworld.com> 2009-09-05 Peter Stephenson <p.w.stephenson@ntlworld.com>
@ -12125,5 +12129,5 @@
***************************************************** *****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL * This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.4769 $ * $Revision: 1.4770 $
***************************************************** *****************************************************

View file

@ -1942,7 +1942,7 @@ virepeatsearch(UNUSED(char **args))
continue; continue;
zt = GETZLETEXT(he); zt = GETZLETEXT(he);
if (zlinecmp(zt, zlemetaline) && if (zlinecmp(zt, zlemetaline) &&
(*visrchstr == '^' ? strpfx(zt, visrchstr + 1) : (*visrchstr == '^' ? strpfx(visrchstr + 1, zt) :
zlinefind(zt, 0, visrchstr, 1, 1) != 0)) { zlinefind(zt, 0, visrchstr, 1, 1) != 0)) {
if (--n <= 0) { if (--n <= 0) {
unmetafy_line(); unmetafy_line();