diff src/testdir/test_debugger.vim @ 24960:64b70a958f19 v8.2.3017

patch 8.2.3017: Vim9: debugger shows too many lines Commit: https://github.com/vim/vim/commit/59b50c3bee908694ae4ac10b26bfebf99d09d466 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 17 22:27:48 2021 +0200 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 https://github.com/vim/vim/issues/8392)
author Bram Moolenaar <Bram@vim.org>
date Thu, 17 Jun 2021 22:30:03 +0200
parents ffe784fdec57
children 2818b8108d92
line wrap: on
line diff
--- a/src/testdir/test_debugger.vim
+++ b/src/testdir/test_debugger.vim
@@ -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)