From: Karl Heuer Date: Sun, 23 Feb 1997 22:49:18 +0000 (+0000) Subject: Fix previous change. X-Git-Tag: emacs-20.1~2873 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f73d78a2f4a325cc943bd464eccc566ceb8fddfa;p=emacs.git Fix previous change. --- diff --git a/src/search.c b/src/search.c index f96e9e53bd9..d321ec1901e 100644 --- a/src/search.c +++ b/src/search.c @@ -848,10 +848,11 @@ skip_chars (forwardp, syntaxp, string, lim) { while (pos > XINT (lim)) { + int savepos = pos; DEC_POS (pos); if (!fastmap[(int) SYNTAX (FETCH_CHAR (pos))]) { - INC_POS (pos); + pos = savepos; break; } } @@ -889,6 +890,7 @@ skip_chars (forwardp, syntaxp, string, lim) { while (pos > XINT (lim)) { + int savepos = pos; DEC_POS (pos); if (fastmap[(c = FETCH_BYTE (pos))]) { @@ -903,14 +905,23 @@ skip_chars (forwardp, syntaxp, string, lim) if (ch >= char_ranges[i] && ch <= char_ranges[i + 1]) break; if (!(negate ^ (i < n_char_ranges))) - break; + { + pos = savepos; + break; + } } else if (!negate) - break; + { + pos = savepos; + break; + } } else - break; + { + pos = savepos; + break; + } } } }