mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +00:00
Additional FOR_ALL_WINDOWS usage
This commit is contained in:
@@ -4155,8 +4155,6 @@ void spell_free_all(void)
|
||||
// Used after 'encoding' is set and when ":mkspell" was used.
|
||||
void spell_reload(void)
|
||||
{
|
||||
win_T *wp;
|
||||
|
||||
// Initialize the table for spell_iswordp().
|
||||
init_spell_chartab();
|
||||
|
||||
@@ -4164,7 +4162,7 @@ void spell_reload(void)
|
||||
spell_free_all();
|
||||
|
||||
// Go through all buffers and handle 'spelllang'.
|
||||
for (wp = firstwin; wp != NULL; wp = wp->w_next) {
|
||||
FOR_ALL_WINDOWS(wp) {
|
||||
// Only load the wordlists when 'spelllang' is set and there is a
|
||||
// window for this buffer in which 'spell' is set.
|
||||
if (*wp->w_s->b_p_spl != NUL) {
|
||||
|
Reference in New Issue
Block a user