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.
d569a9e746

Skip an assert because of #3027.
This commit is contained in:
zeertzjq
2022-07-04 09:21:19 +08:00
parent 7648a8524c
commit 1ff86aa634
2 changed files with 25 additions and 1 deletions

View File

@@ -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;
}