From 0c498200f42036a3aad9a7c2046016a0d2de6a7f Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Fri, 10 Jul 2020 19:10:24 -0400 Subject: [PATCH] vim-patch:8.2.1169: write NUL past allocated space using corrupted spell file Problem: Write NUL past allocated space using corrupted spell file. (Markus Vervier) Solution: Init "c" every time. https://github.com/vim/vim/commit/97d2f34c8763ab3a46c9f43284cc17bad3cf9568 N/A patches for version.c: vim-patch:8.0.1531: cannot use 24 bit colors in MS-Windows console Problem: Cannot use 24 bit colors in MS-Windows console. Solution: Add support for vcon. (Nobuhiro Takasaki, Ken Takasaki, fixes vim/vim#1270, fixes vim/vim#2060) https://github.com/vim/vim/commit/cafafb381a04e33f3ce9cd15dd9f94b73226831f vim-patch:8.0.1544: when using 'termguicolors' SpellBad doesn't show Problem: When using 'termguicolors' SpellBad doesn't show. Solution: When the GUI colors are not set fall back to the cterm colors. https://github.com/vim/vim/commit/d4fc577e60d325777d38c00bd78fb9a32c7b1dfa vim-patch:8.0.1589: error for setting 'modifiable' when resetting it Problem: Error for setting 'modifiable' when resetting it. Solution: Check if 'modifiable' was actually set. https://github.com/vim/vim/commit/d7db27bafd1045281c965d9483539748a744de70 vim-patch:8.0.1591: MS-Windows: when reparsing the arguments 'wildignore' matters Problem: MS-Windows: when reparsing the arguments 'wildignore' matters. Solution: Save and reset 'wildignore'. (Yasuhiro Matsumoto, closes vim/vim#2702) https://github.com/vim/vim/commit/20586cb4f4d516a60b96cc02a94b810fea8b8cdb vim-patch:8.0.1712: terminal scrollback is not limited Problem: Terminal scrollback is not limited. Solution: Add the 'terminalscroll' option. https://github.com/vim/vim/commit/8c041b6b95f49f7383cf00e2036cf009b326fa8d Neovim has 'scrollback' option, not 'terminalscroll', to limit scrollback in terminal buffers. vim-patch:8.0.1745: build failure on MS-Windows Problem: Build failure on MS-Windows. Solution: Build job arguments for MS-Windows. Fix allocating job twice. https://github.com/vim/vim/commit/2060892028e05b1325dc0759259254180669eb5e vim-patch:8.0.1747: MS-Windows: term_start() does not set job_info() cmd Problem: MS-Windows: term_start() does not set job_info() cmd. Solution: Share the code from job_start() to set jv_argv. https://github.com/vim/vim/commit/ebe74b73677b06db7d483987a863b41cee051cc0 --- src/nvim/spellfile.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/nvim/spellfile.c b/src/nvim/spellfile.c index 41669789db..69c0fa51b2 100644 --- a/src/nvim/spellfile.c +++ b/src/nvim/spellfile.c @@ -1134,7 +1134,6 @@ static int read_sal_section(FILE *fd, slang_T *slang) salitem_T *smp; int ccnt; char_u *p; - int c = NUL; slang->sl_sofo = false; @@ -1158,7 +1157,9 @@ static int read_sal_section(FILE *fd, slang_T *slang) ga_grow(gap, cnt + 1); // : - for (; gap->ga_len < cnt; ++gap->ga_len) { + for (; gap->ga_len < cnt; gap->ga_len++) { + int c = NUL; + smp = &((salitem_T *)gap->ga_data)[gap->ga_len]; ccnt = getc(fd); // if (ccnt < 0)