From: Bram Moolenaar Date: Tue, 13 Sep 2022 11:36:57 +0000 (+0100) Subject: patch 9.0.0456: function called at debug prompt is also debugged X-Git-Tag: v9.0.0456 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1842de5ca77205993e8ef76cf29803822e0e3ab;p=thirdparty%2Fvim.git patch 9.0.0456: function called at debug prompt is also debugged Problem: Function called at debug prompt is also debugged. Solution: Reset the debug level while entering the debug command. (closes #11118) --- diff --git a/src/debugger.c b/src/debugger.c index e2f73cca03..235d493d58 100644 --- a/src/debugger.c +++ b/src/debugger.c @@ -135,9 +135,14 @@ do_debug(char_u *cmd) ignore_script = TRUE; } + // don't debug any function call, e.g. from an expresion mapping + n = debug_break_level; + debug_break_level = -1; + vim_free(cmdline); cmdline = getcmdline_prompt('>', NULL, 0, EXPAND_NOTHING, NULL); + debug_break_level = n; if (typeahead_saved) { restore_typeahead(&typeaheadbuf, TRUE); diff --git a/src/version.c b/src/version.c index 3b143a463c..85e5a9d3b1 100644 --- a/src/version.c +++ b/src/version.c @@ -703,6 +703,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 456, /**/ 455, /**/