aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/spell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/spell.c')
-rw-r--r--src/nvim/spell.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c
index d277d71d99..5e40ae7708 100644
--- a/src/nvim/spell.c
+++ b/src/nvim/spell.c
@@ -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) {