neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit ec1f153ddc58e38bf21e2a47b9621feb63fd0e51
parent 37e968880256ca177524511848195b6c22318b34
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Tue, 13 Sep 2022 21:02:11 +0800

vim-patch:9.0.0456: function called at debug prompt is also debugged (#20185)

Problem:    Function called at debug prompt is also debugged.
Solution:   Reset the debug level while entering the debug command.
            (closes vim/vim#11118)
https://github.com/vim/vim/commit/b1842de5ca77205993e8ef76cf29803822e0e3ab
Diffstat:
Msrc/nvim/debugger.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/nvim/debugger.c b/src/nvim/debugger.c @@ -128,10 +128,15 @@ void do_debug(char *cmd) ignore_script = true; } + // don't debug any function call, e.g. from an expresion mapping + n = debug_break_level; + debug_break_level = -1; + xfree(cmdline); cmdline = getcmdline_prompt('>', NULL, 0, EXPAND_NOTHING, NULL, CALLBACK_NONE); + debug_break_level = n; if (typeahead_saved) { restore_typeahead(&typeaheadbuf); ignore_script = save_ignore_script;