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

patch 8.2.2377: Vim9: crash when using a range after another expression

Problem:    Vim9: crash when using a range after another expression.
Solution:   Set the variable type to number. Fix using :put with a range and
            the "=" register. (closes #7706)
This commit is contained in:
Bram Moolenaar
2021-01-19 22:48:09 +01:00
parent e64f83cc6a
commit a28639e711
3 changed files with 26 additions and 16 deletions

View File

@@ -750,6 +750,10 @@ def Test_put_command()
:+2put! a
assert_equal('aaa', getline(4))
[]->mapnew(() => 0)
:$put ='end'
assert_equal('end', getline('$'))
bwipe!
CheckDefFailure(['put =xxx'], 'E1001:')