summaryrefslogtreecommitdiff
path: root/src/regexp.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-06-19 14:36:35 +0100
committerBram Moolenaar <Bram@vim.org>2022-06-19 14:36:35 +0100
commit1f30caff8b63beda75a5dcd15ffe3e9e818ed483 (patch)
tree29aa0c49c7ead7d8298f49165f0db9aaa09bcc6d /src/regexp.c
parent6f0cf62df97ee7c9d26b550adaf469be7fe1e09a (diff)
downloadvim-git-1f30caff8b63beda75a5dcd15ffe3e9e818ed483.tar.gz
patch 8.2.5129: timeout handling is not optimalv8.2.5129
Problem: Timeout handling is not optimal. Solution: Avoid setting timeout_flag twice. Adjust the pointer when stopping the regexp timeout. Adjust variable name.
Diffstat (limited to 'src/regexp.c')
-rw-r--r--src/regexp.c1
1 files changed, 1 insertions, 0 deletions
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