diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-07-11 16:52:45 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-11 16:52:45 +0200 |
commit | c03fe66ade4c79a4eb5fc05d1d549c8f931a04b6 (patch) | |
tree | abed0d47ce18c846909fcbbbf67bbddc3d1ef786 /src/testdir | |
parent | 4ece152ad60c4fbd5b98b849a39b8ad9a987d319 (diff) |
patch 8.2.3146: Vim9: line number wrong for :execute argumentv8.2.3146
Problem: Vim9: line number wrong for :execute argument.
Solution: Use the line number of the :execute command itself. (closes #8537)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_vim9_script.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim index ab0c031c54..0602b2ae5b 100644 --- a/src/testdir/test_vim9_script.vim +++ b/src/testdir/test_vim9_script.vim @@ -4167,6 +4167,16 @@ def Test_option_modifier() set hlsearch& enddef +" This must be called last, it may cause following :def functions to fail +def Test_xxx_echoerr_line_number() + var lines =<< trim END + echoerr 'some' + .. ' error' + .. ' continued' + END + CheckDefExecAndScriptFailure(lines, 'some error continued', 1) +enddef + def ProfiledFunc() var n = 3 echo [[1, 2], [3, 4]]->filter((_, l) => l[0] == n) |