Skip to content

Commit b1842de

Browse files
committed
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)
1 parent 5ed3917 commit b1842de

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/debugger.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,14 @@ do_debug(char_u *cmd)
135135
ignore_script = TRUE;
136136
}
137137

138+
// don't debug any function call, e.g. from an expresion mapping
139+
n = debug_break_level;
140+
debug_break_level = -1;
141+
138142
vim_free(cmdline);
139143
cmdline = getcmdline_prompt('>', NULL, 0, EXPAND_NOTHING, NULL);
140144

145+
debug_break_level = n;
141146
if (typeahead_saved)
142147
{
143148
restore_typeahead(&typeaheadbuf, TRUE);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,8 @@ static char *(features[]) =
703703

704704
static int included_patches[] =
705705
{ /* Add new patch number below this line */
706+
/**/
707+
456,
706708
/**/
707709
455,
708710
/**/

0 commit comments

Comments
 (0)