0
0
mirror of https://github.com/vim/vim.git synced 2025-10-03 05:14:07 -04:00

patch 8.2.1914: Vim9: cannot put line break in expression for '=' register

Problem:    Vim9: cannot put line break in expression for '=' register.
Solution:   Pass fgetline to set_expr_line(). (closes #7209)
This commit is contained in:
Bram Moolenaar
2020-10-28 13:53:50 +01:00
parent 70cf45810c
commit b4bcea474d
8 changed files with 46 additions and 11 deletions

View File

@@ -2859,6 +2859,18 @@ def Test_catch_exception_in_callback()
unlet g:caught
enddef
def Test_put_with_linebreak()
new
var lines =<< trim END
vim9script
pu=split('abc', '\zs')
->join()
END
CheckScriptSuccess(lines)
getline(2)->assert_equal('a b c')
bwipe!
enddef
" Keep this last, it messes up highlighting.
def Test_substitute_cmd()
new