# HG changeset patch # User Richard M. Stallman # Date 734213335 0 # Node ID 052bbdf1b81777f254342542d2302c12776506dc # Parent 86c8a6e08fd4ac4fea5241e62ab74b7eb26976cd (search_buffer): Fix typo in previous change. diff -r 86c8a6e08fd4 -r 052bbdf1b817 src/search.c --- a/src/search.c Wed Apr 07 20:04:50 1993 +0000 +++ b/src/search.c Wed Apr 07 20:08:55 1993 +0000 @@ -670,11 +670,12 @@ } while (n < 0) { + int val; BLOCK_INPUT; - int val = re_search_2 (&searchbuf, (char *) p1, s1, (char *) p2, s2, - pos - BEGV, lim - pos, &search_regs, - /* Don't allow match past current point */ - pos - BEGV); + val = re_search_2 (&searchbuf, (char *) p1, s1, (char *) p2, s2, + pos - BEGV, lim - pos, &search_regs, + /* Don't allow match past current point */ + pos - BEGV); UNBLOCK_INPUT; if (val == -2) matcher_overflow (); @@ -700,10 +701,11 @@ } while (n > 0) { + int val; BLOCK_INPUT; - int val = re_search_2 (&searchbuf, (char *) p1, s1, (char *) p2, s2, - pos - BEGV, lim - pos, &search_regs, - lim - BEGV); + val = re_search_2 (&searchbuf, (char *) p1, s1, (char *) p2, s2, + pos - BEGV, lim - pos, &search_regs, + lim - BEGV); UNBLOCK_INPUT; if (val == -2) matcher_overflow ();