comparison src/testdir/test_vim9_script.vim @ 25220:89b39ce243e2 v8.2.3146

patch 8.2.3146: Vim9: line number wrong for :execute argument Commit: https://github.com/vim/vim/commit/c03fe66ade4c79a4eb5fc05d1d549c8f931a04b6 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 11 16:52:45 2021 +0200 patch 8.2.3146: Vim9: line number wrong for :execute argument Problem: Vim9: line number wrong for :execute argument. Solution: Use the line number of the :execute command itself. (closes https://github.com/vim/vim/issues/8537)
author Bram Moolenaar <Bram@vim.org>
date Sun, 11 Jul 2021 17:00:04 +0200
parents 645c7963a586
children fbb530e081ca
comparison
equal deleted inserted replaced
25219:269f1e0a2cf1 25220:89b39ce243e2
4165 CheckDefExecAndScriptFailure(lines, 'E1205: No white space allowed between option and: !') 4165 CheckDefExecAndScriptFailure(lines, 'E1205: No white space allowed between option and: !')
4166 4166
4167 set hlsearch& 4167 set hlsearch&
4168 enddef 4168 enddef
4169 4169
4170 " This must be called last, it may cause following :def functions to fail
4171 def Test_xxx_echoerr_line_number()
4172 var lines =<< trim END
4173 echoerr 'some'
4174 .. ' error'
4175 .. ' continued'
4176 END
4177 CheckDefExecAndScriptFailure(lines, 'some error continued', 1)
4178 enddef
4179
4170 def ProfiledFunc() 4180 def ProfiledFunc()
4171 var n = 3 4181 var n = 3
4172 echo [[1, 2], [3, 4]]->filter((_, l) => l[0] == n) 4182 echo [[1, 2], [3, 4]]->filter((_, l) => l[0] == n)
4173 enddef 4183 enddef
4174 4184