0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

patch 8.2.1099: Vim9: cannot use line break in :cexpr argument

Problem:    Vim9: cannot use line break in :cexpr argument.
Solution:   Check for line break.
This commit is contained in:
Bram Moolenaar
2020-06-30 21:18:36 +02:00
parent 006ad48b8a
commit 37c8371195
3 changed files with 36 additions and 23 deletions

View File

@@ -599,6 +599,20 @@ def Test_throw_vimscript()
CheckScriptSuccess(lines)
enddef
def Test_cexpr_vimscript()
" only checks line continuation
set errorformat=File\ %f\ line\ %l
let lines =<< trim END
vim9script
cexpr 'File'
.. ' someFile' ..
' line 19'
assert_equal(19, getqflist()[0].lnum)
END
CheckScriptSuccess(lines)
set errorformat&
enddef
if has('channel')
let someJob = test_null_job()