Skip to content

Commit 33b55b5

Browse files
committed
patch 9.0.0688: debugger does not display the whole command
Problem: Debugger does not display the whole command. Solution: Set ea.cmd before checking for a breakpoint.
1 parent 5ab3001 commit 33b55b5

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/ex_docmd.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1889,7 +1889,11 @@ do_one_cmd(
18891889
}
18901890
}
18911891
# endif
1892+
#endif
1893+
1894+
ea.cmd = cmd;
18921895

1896+
#ifdef FEAT_EVAL
18931897
// May go to debug mode. If this happens and the ">quit" debug command is
18941898
// used, throw an interrupt exception and skip the next command.
18951899
dbg_check_breakpoint(&ea);
@@ -1935,7 +1939,6 @@ do_one_cmd(
19351939
#endif
19361940
}
19371941

1938-
ea.cmd = cmd;
19391942
if (!may_have_range)
19401943
ea.line1 = ea.line2 = default_address(&ea);
19411944
else if (parse_cmd_address(&ea, &errormsg, FALSE) == FAIL)

src/testdir/test_debugger.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,6 @@ func Test_Backtrace_DefFunction()
993993
call RunDbgCmd(buf, 'step', ['line 1: vim9script'])
994994
call RunDbgCmd(buf, 'step', ['line 3: def DoAThing(): number'])
995995
call RunDbgCmd(buf, 'step', ['line 9: export def File2Function()'])
996-
call RunDbgCmd(buf, 'step', ['line 9: def File2Function()'])
997996
call RunDbgCmd(buf, 'step', ['line 13: defcompile'])
998997
call RunDbgCmd(buf, 'step', ['line 14: File2Function()'])
999998
call RunDbgCmd(buf, 'backtrace', [

src/version.c

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

700700
static int included_patches[] =
701701
{ /* Add new patch number below this line */
702+
/**/
703+
688,
702704
/**/
703705
687,
704706
/**/

0 commit comments

Comments
 (0)