comparison src/regexp.c @ 29220:d6f8b784d0f6 v8.2.5129

patch 8.2.5129: timeout handling is not optimal Commit: https://github.com/vim/vim/commit/1f30caff8b63beda75a5dcd15ffe3e9e818ed483 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 19 14:36:35 2022 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Sun, 19 Jun 2022 15:45:02 +0200
parents 0af5fe160e4e
children b12fd2b3be63
comparison
equal deleted inserted replaced
29219:aad416d6fb3f 29220:d6f8b784d0f6
59 59
60 void 60 void
61 disable_regexp_timeout(void) 61 disable_regexp_timeout(void)
62 { 62 {
63 stop_timeout(); 63 stop_timeout();
64 timeout_flag = &dummy_timeout_flag;
64 } 65 }
65 #endif 66 #endif
66 67
67 /* 68 /*
68 * The first byte of the BT regexp internal "program" is actually this magic 69 * The first byte of the BT regexp internal "program" is actually this magic