mirror of
https://github.com/vim/vim.git
synced 2025-10-04 05:25:06 -04:00
patch 8.2.2964: Vim9: hang when using space after ->
Problem: Vim9: hang when using space after ->. (Naohiro Ono) Solution: Skip over white space to find the function name. (closes #8341)
This commit is contained in:
@@ -2961,6 +2961,10 @@ def Test_expr7_method_call()
|
||||
|
||||
var Join = (l) => join(l, 'x')
|
||||
assert_equal('axb', ['a', 'b']->(Join)())
|
||||
|
||||
var sorted = [3, 1, 2]
|
||||
-> sort()
|
||||
assert_equal([1, 2, 3], sorted)
|
||||
END
|
||||
CheckDefAndScriptSuccess(lines)
|
||||
enddef
|
||||
|
Reference in New Issue
Block a user