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:
@@ -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:')
|
||||
|
Reference in New Issue
Block a user