mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 19:35:37 +00:00
vim-patch:8.2.3013: Vim: when debugging only first line of command is displayed
Problem: Vim: when debugging only the first line of a command using line
continuation is displayed.
Solution: Find the next command and concatenate lines until that one.
(closes vim/vim#8392)
4cea536bdf
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -992,6 +992,13 @@ func Test_debug_def_function()
|
|||||||
endfor
|
endfor
|
||||||
echo "done"
|
echo "done"
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
|
def g:FuncWithDict()
|
||||||
|
var d = {
|
||||||
|
a: 1,
|
||||||
|
b: 2,
|
||||||
|
}
|
||||||
|
enddef
|
||||||
END
|
END
|
||||||
call writefile(file, 'Xtest.vim')
|
call writefile(file, 'Xtest.vim')
|
||||||
|
|
||||||
@@ -1024,6 +1031,12 @@ func Test_debug_def_function()
|
|||||||
call RunDbgCmd(buf, 'step', ['line 3: echo it'])
|
call RunDbgCmd(buf, 'step', ['line 3: echo it'])
|
||||||
call RunDbgCmd(buf, 'step', ['3', 'function FuncWithArgs', 'line 4: endfor'])
|
call RunDbgCmd(buf, 'step', ['3', 'function FuncWithArgs', 'line 4: endfor'])
|
||||||
call RunDbgCmd(buf, 'step', ['line 5: echo "done"'])
|
call RunDbgCmd(buf, 'step', ['line 5: echo "done"'])
|
||||||
|
call RunDbgCmd(buf, 'cont')
|
||||||
|
|
||||||
|
call RunDbgCmd(buf,
|
||||||
|
\ ':debug call FuncWithDict()',
|
||||||
|
\ ['cmd: call FuncWithDict()'])
|
||||||
|
call RunDbgCmd(buf, 'step', ['line 1: var d = { a: 1, b: 2, }'])
|
||||||
|
|
||||||
call RunDbgCmd(buf, 'cont')
|
call RunDbgCmd(buf, 'cont')
|
||||||
call StopVimInTerminal(buf)
|
call StopVimInTerminal(buf)
|
||||||
|
|||||||
Reference in New Issue
Block a user