commit | 1f30caff8b63beda75a5dcd15ffe3e9e818ed483 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jun 19 14:36:35 2022 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jun 19 14:36:35 2022 +0100 |
tree | 29aa0c49c7ead7d8298f49165f0db9aaa09bcc6d | |
parent | 6f0cf62df97ee7c9d26b550adaf469be7fe1e09a [diff] [blame] |
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.
diff --git a/src/regexp.c b/src/regexp.c index 0a6a8af..32661f6 100644 --- a/src/regexp.c +++ b/src/regexp.c
@@ -61,6 +61,7 @@ disable_regexp_timeout(void) { stop_timeout(); + timeout_flag = &dummy_timeout_flag; } #endif