mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
patch 8.2.2688: Vim9: crash when using s: for script variable
Problem: Vim9: crash when using s: for script variable. Solution: Pass the end pointer. (closes #8045)
This commit is contained in:
@@ -1644,9 +1644,10 @@ def Test_vim9script_funcref()
|
||||
|
||||
# using the function from a compiled function
|
||||
def TestMore(): string
|
||||
return anAlias.GetString('text')
|
||||
var s = s:anAlias.GetString('foo')
|
||||
return s .. anAlias.GetString('bar')
|
||||
enddef
|
||||
assert_equal('text', TestMore())
|
||||
assert_equal('foobar', TestMore())
|
||||
|
||||
# error when using a function that isn't exported
|
||||
assert_fails('anAlias.Compare(1, 2)', 'E1049:')
|
||||
|
Reference in New Issue
Block a user