diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-11-13 06:41:38 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-11-13 06:46:17 +0800 |
commit | 940d9c59a76e1c38a7331492eb6d1b3da7f123ef (patch) | |
tree | 5b48a8035b6dfd3d8aff69ca4bb575261a541b84 | |
parent | 02a43ddf1ef5d779cae7a67f69904dd983ea53ee (diff) | |
download | rneovim-940d9c59a76e1c38a7331492eb6d1b3da7f123ef.tar.gz rneovim-940d9c59a76e1c38a7331492eb6d1b3da7f123ef.tar.bz2 rneovim-940d9c59a76e1c38a7331492eb6d1b3da7f123ef.zip |
vim-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 vim/vim#8392)
https://github.com/vim/vim/commit/59b50c3bee908694ae4ac10b26bfebf99d09d466
Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r-- | test/old/testdir/test_debugger.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/old/testdir/test_debugger.vim b/test/old/testdir/test_debugger.vim index 2e881ca0b8..bda40e0459 100644 --- a/test/old/testdir/test_debugger.vim +++ b/test/old/testdir/test_debugger.vim @@ -998,6 +998,10 @@ func Test_debug_def_function() a: 1, b: 2, } + # comment + def Inner() + eval 1 + enddef enddef END call writefile(file, 'Xtest.vim') @@ -1037,6 +1041,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) |