From de182d70416e3bfa6407b8489a3641afbbd288de Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Sat, 25 Dec 1999 12:55:46 +0000 Subject: [PATCH] (looking_at_1): Reset immediate_quit before modifying global data. --- src/search.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/search.c b/src/search.c index ccfc66003a2..5bcbaa615b3 100644 --- a/src/search.c +++ b/src/search.c @@ -308,6 +308,8 @@ looking_at_1 (string, posix) i = re_match_2 (bufp, (char *) p1, s1, (char *) p2, s2, PT_BYTE - BEGV_BYTE, &search_regs, ZV_BYTE - BEGV_BYTE); + immediate_quit = 0; + if (i == -2) matcher_overflow (); @@ -322,7 +324,6 @@ looking_at_1 (string, posix) = BYTE_TO_CHAR (search_regs.end[i] + BEGV_BYTE); } XSETBUFFER (last_thing_searched, current_buffer); - immediate_quit = 0; return val; } -- 2.39.5