From 1f30caff8b63beda75a5dcd15ffe3e9e818ed483 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 19 Jun 2022 14:36:35 +0100 Subject: patch 8.2.5129: timeout handling is not optimal Problem: Timeout handling is not optimal. Solution: Avoid setting timeout_flag twice. Adjust the pointer when stopping the regexp timeout. Adjust variable name. --- src/regexp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/regexp.c') diff --git a/src/regexp.c b/src/regexp.c index 0a6a8af3d..32661f6d8 100644 --- a/src/regexp.c +++ b/src/regexp.c @@ -61,6 +61,7 @@ init_regexp_timeout(long msec) disable_regexp_timeout(void) { stop_timeout(); + timeout_flag = &dummy_timeout_flag; } #endif -- cgit v1.2.1