To: vim_dev@googlegroups.com Subject: Patch 9.0.0456 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.0456 Problem: Function called at debug prompt is also debugged. Solution: Reset the debug level while entering the debug command. (closes #11118) Files: src/debugger.c *** ../vim-9.0.0455/src/debugger.c 2022-08-14 14:16:07.983582313 +0100 --- src/debugger.c 2022-09-13 12:32:54.592710609 +0100 *************** *** 135,143 **** --- 135,148 ---- 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); *** ../vim-9.0.0455/src/version.c 2022-09-13 11:55:06.517824775 +0100 --- src/version.c 2022-09-13 12:35:28.504315275 +0100 *************** *** 705,706 **** --- 705,708 ---- { /* Add new patch number below this line */ + /**/ + 456, /**/ -- ERROR 047: Keyboard not found. Press RETURN to continue. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///