mirror of
https://github.com/vim/vim.git
synced 2025-10-28 09:27:14 -04:00
patch 8.2.3017: Vim9: debugger shows too many lines
Problem: Vim9: debugger shows too many lines. Solution: Truncate at a comment, "enddef", etc. (closes #8392)
This commit is contained in:
@@ -958,6 +958,10 @@ func Test_debug_def_function()
|
||||
a: 1,
|
||||
b: 2,
|
||||
}
|
||||
# comment
|
||||
def Inner()
|
||||
eval 1
|
||||
enddef
|
||||
enddef
|
||||
END
|
||||
call writefile(file, 'Xtest.vim')
|
||||
@@ -997,6 +1001,7 @@ func Test_debug_def_function()
|
||||
\ ':debug call FuncWithDict()',
|
||||
\ ['cmd: call FuncWithDict()'])
|
||||
call RunDbgCmd(buf, 'step', ['line 1: var d = { a: 1, b: 2, }'])
|
||||
call RunDbgCmd(buf, 'step', ['line 6: def Inner()'])
|
||||
|
||||
call RunDbgCmd(buf, 'cont')
|
||||
call StopVimInTerminal(buf)
|
||||
|
||||
Reference in New Issue
Block a user