Mercurial > vim
diff runtime/doc/eval.txt @ 17159:3fd0765f454f v8.1.1579
patch 8.1.1579: dict and list could be GC'ed while displaying error
commit https://github.com/vim/vim/commit/adc6714aac20f5462a0ecec50ab4806b2f3ab0db
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 22 01:40:42 2019 +0200
patch 8.1.1579: dict and list could be GC'ed while displaying error
Problem: Dict and list could be GC'ed while displaying error in a timer.
(Yasuhiro Matsumoto)
Solution: Block garbage collection when executing a timer. Add
test_garbagecollect_soon(). Add "no_wait_return" to
test_override(). (closes #4571)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 22 Jun 2019 01:45:05 +0200 |
parents | be5a5cfc991a |
children | 9ccb1ea9b2fc |
line wrap: on
line diff
--- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2741,6 +2741,7 @@ test_alloc_fail({id}, {countdown}, {repe test_autochdir() none enable 'autochdir' during startup test_feedinput({string}) none add key sequence to input buffer test_garbagecollect_now() none free memory right now for testing +test_garbagecollect_soon() none free memory soon for testing test_getvalue({string}) any get value of an internal variable test_ignore_error({expr}) none ignore a specific error test_null_blob() Blob null value for testing @@ -10009,6 +10010,10 @@ test_garbagecollect_now() *test_garba internally, and |v:testing| must have been set before calling any function. +test_garbagecollect_soon() *test_garbagecollect_soon()* + Set the flag to call the garbagecollector as if in the main + loop. Only to be used in tests. + test_getvalue({name}) *test_getvalue()* Get the value of an internal variable. These values for {name} are supported: @@ -10072,6 +10077,8 @@ test_override({name}, {val}) *test_ov fallback to the old engine no_query_mouse do not query the mouse position for "dec" terminals + no_wait_return set the "no_wait_return" flag. Not restored + with "ALL". ALL clear all overrides ({val} is not used) "starting" is to be used when a test should behave like