mirror of
https://github.com/vim/vim.git
synced 2025-10-04 05:25:06 -04:00
patch 9.0.0499: in :def function list created after const is locked
Problem: In :def function list created after const is locked. Solution: Reset v_lock. (closes #11154)
This commit is contained in:
@@ -2023,6 +2023,13 @@ def Test_var_declaration()
|
||||
unlet w:FLIST
|
||||
enddef
|
||||
|
||||
def Test_create_list_after_const()
|
||||
const a = 1
|
||||
g:ll = []
|
||||
assert_equal(0, islocked('g:ll'))
|
||||
unlet g:ll
|
||||
enddef
|
||||
|
||||
def Test_var_declaration_fails()
|
||||
var lines =<< trim END
|
||||
vim9script
|
||||
|
Reference in New Issue
Block a user