diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-01-05 10:40:02 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-01-05 10:40:53 -0500 |
commit | 1aacab49ea0e5cff94bd89595737b6af677f4490 (patch) | |
tree | 3d917be003cb49e95a3ea021145701f44cfb39b9 /src/nvim/getchar.c | |
parent | 3a3fb0860248b42e05de6591d4b7727453efdef2 (diff) | |
download | rneovim-1aacab49ea0e5cff94bd89595737b6af677f4490.tar.gz rneovim-1aacab49ea0e5cff94bd89595737b6af677f4490.tar.bz2 rneovim-1aacab49ea0e5cff94bd89595737b6af677f4490.zip |
vim-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 vim/vim#4571)
https://github.com/vim/vim/commit/adc6714aac20f5462a0ecec50ab4806b2f3ab0db
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index b82839103f..81666bf5d6 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -1518,7 +1518,7 @@ int vgetc(void) * collection in the first next vgetc(). It's disabled after that to * avoid internally used Lists and Dicts to be freed. */ - may_garbage_collect = FALSE; + may_garbage_collect = false; return c; } |