diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-04-27 20:01:49 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-04-27 20:01:49 +0000 |
commit | bbcee91527ba3e0163b55a6e1bdca44f9239fbcf (patch) | |
tree | 140ef32c81604d2dd557565a8c59cdb9862feaff /Src/Zle | |
parent | 91a10708b25b78d36549de0177e2330670fe163d (diff) | |
download | zsh-bbcee91527ba3e0163b55a6e1bdca44f9239fbcf.tar.gz zsh-bbcee91527ba3e0163b55a6e1bdca44f9239fbcf.tar.xz zsh-bbcee91527ba3e0163b55a6e1bdca44f9239fbcf.zip |
24886: fix endless loop in string isearch
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/zle_hist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c index 203492b55..bc0598327 100644 --- a/Src/Zle/zle_hist.c +++ b/Src/Zle/zle_hist.c @@ -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) { |