Commit 42db823b authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(search_buffer): Fix typo in previous change.

parent 987d2ad1
...@@ -670,11 +670,12 @@ search_buffer (string, pos, lim, n, RE, trt, inverse_trt) ...@@ -670,11 +670,12 @@ search_buffer (string, pos, lim, n, RE, trt, inverse_trt)
} }
while (n < 0) while (n < 0)
{ {
int val;
BLOCK_INPUT; BLOCK_INPUT;
int val = re_search_2 (&searchbuf, (char *) p1, s1, (char *) p2, s2, val = re_search_2 (&searchbuf, (char *) p1, s1, (char *) p2, s2,
pos - BEGV, lim - pos, &search_regs, pos - BEGV, lim - pos, &search_regs,
/* Don't allow match past current point */ /* Don't allow match past current point */
pos - BEGV); pos - BEGV);
UNBLOCK_INPUT; UNBLOCK_INPUT;
if (val == -2) if (val == -2)
matcher_overflow (); matcher_overflow ();
...@@ -700,10 +701,11 @@ search_buffer (string, pos, lim, n, RE, trt, inverse_trt) ...@@ -700,10 +701,11 @@ search_buffer (string, pos, lim, n, RE, trt, inverse_trt)
} }
while (n > 0) while (n > 0)
{ {
int val;
BLOCK_INPUT; BLOCK_INPUT;
int val = re_search_2 (&searchbuf, (char *) p1, s1, (char *) p2, s2, val = re_search_2 (&searchbuf, (char *) p1, s1, (char *) p2, s2,
pos - BEGV, lim - pos, &search_regs, pos - BEGV, lim - pos, &search_regs,
lim - BEGV); lim - BEGV);
UNBLOCK_INPUT; UNBLOCK_INPUT;
if (val == -2) if (val == -2)
matcher_overflow (); matcher_overflow ();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment