mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 04:30:24 +02:00
24886: fix endless loop in string isearch
This commit is contained in:
parent
91a10708b2
commit
bbcee91527
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-04-27 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 24886: Src/Zle/zle_hist.c: using unupdated pos to set end_pos
|
||||
in string isearch could cause endless loop.
|
||||
|
||||
2008-04-26 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* unposted: NEWS: note that COMBINING_CHARS is not on by
|
||||
|
|
|
@ -1323,7 +1323,7 @@ doisearch(char **args, int dir, int pattern)
|
|||
} else
|
||||
t = zlinefind(zt, pos, sbuf, dir, sens);
|
||||
if (t)
|
||||
end_pos = pos + sbptr - (sbuf[0] == '^');
|
||||
end_pos = (t - zt) + sbptr - (sbuf[0] == '^');
|
||||
}
|
||||
}
|
||||
if (t) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue