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 -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20220913113729.0526E1C0A27%40moolenaar.net.