mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14:07 -04:00
patch 8.2.2806: Vim9: using "++nr" as a command might not work
Problem: Vim9: using "++nr" as a command might not work. Solution: Do not recognize "++" and "--" in a following line as addition or subtraction.
This commit is contained in:
@@ -2768,19 +2768,6 @@ def Test_expr7_negate_add()
|
||||
echo + +n
|
||||
END
|
||||
CheckDefAndScriptFailure(lines, 'E15:')
|
||||
|
||||
lines =<< trim END
|
||||
var n = 12
|
||||
:1
|
||||
++n
|
||||
END
|
||||
CheckDefAndScriptFailure(lines, 'E1050:')
|
||||
lines =<< trim END
|
||||
var n = 12
|
||||
:1
|
||||
--n
|
||||
END
|
||||
CheckDefAndScriptFailure(lines, 'E1050:')
|
||||
enddef
|
||||
|
||||
def Test_expr7_legacy_script()
|
||||
|
Reference in New Issue
Block a user