0
0
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:
Bram Moolenaar
2021-06-08 20:46:45 +02:00
parent 445f11d5bc
commit a733042b12
4 changed files with 11 additions and 3 deletions

View File

@@ -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