diff src/evalfunc.c @ 29888:a63d3a0e9aba v9.0.0282

patch 9.0.0282: a nested timout stops the previous timeout Commit: https://github.com/vim/vim/commit/0f618386367ba9388e1f50bc665bc1add6c01567 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 26 21:33:04 2022 +0100 patch 9.0.0282: a nested timout stops the previous timeout Problem: A nested timout stops the previous timeout. Solution: Ignore any nested timeout.
author Bram Moolenaar <Bram@vim.org>
date Fri, 26 Aug 2022 22:45:06 +0200
parents 1342ee83ab97
children d8fc1effa724
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -9176,7 +9176,8 @@ do_searchpair(
 
 theend:
 #ifdef FEAT_RELTIME
-    disable_regexp_timeout();
+    if (time_limit > 0)
+	disable_regexp_timeout();
 #endif
     vim_free(pat2);
     vim_free(pat3);