diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-04 09:21:19 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-04 09:37:45 +0800 |
commit | 1ff86aa634cc5b12e3f804f6594c36799acbf296 (patch) | |
tree | a94d5169fba9a6005d7d00b24c9538c8a93cbd2f /src/nvim/spell.c | |
parent | 7648a8524c3f20d79db50df069a87cfa0cd23f96 (diff) | |
download | rneovim-1ff86aa634cc5b12e3f804f6594c36799acbf296.tar.gz rneovim-1ff86aa634cc5b12e3f804f6594c36799acbf296.tar.bz2 rneovim-1ff86aa634cc5b12e3f804f6594c36799acbf296.zip |
vim-patch:8.2.1770: invalid memory use when using SpellFileMissing autocmd
Problem: Invalid memory use when using SpellFileMissing autocmd.
Solution: Add test case. (Dominique Pellé, closes vim/vim#7036) Fix using a window
that was closed.
https://github.com/vim/vim/commit/d569a9e74684cd17f9cea63e804281388728e513
Skip an assert because of #3027.
Diffstat (limited to 'src/nvim/spell.c')
-rw-r--r-- | src/nvim/spell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c index 304fd30b36..1cefc532aa 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -2327,11 +2327,11 @@ char *did_set_spelllang(win_T *wp) } } } + redraw_later(wp, NOT_VALID); theend: xfree(spl_copy); recursive = false; - redraw_later(wp, NOT_VALID); return ret_msg; } |