vim-patch:8.1.1591: on error garbage collection may free memory in use

Problem:    On error garbage collection may free memory in use.
Solution:   Reset may_garbage_collect when evaluating expression mapping.
            Add tests. (Ozaki Kiichi, closes vim/vim#4579)
7d491c4253
This commit is contained in:
Jan Edmund Lazo
2020-09-26 12:03:20 -04:00
parent 7cb38d5ac4
commit 4edf7b9ff2
4 changed files with 78 additions and 2 deletions

View File

@@ -1409,7 +1409,7 @@ func Test_compound_assignment_operators()
let @/ = ''
endfunc
func! Test_funccall_garbage_collect()
func Test_funccall_garbage_collect()
func Func(x, ...)
call add(a:x, a:000)
endfunc