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, 2 insertions, 2 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c
index 17093571c0..d277d71d99 100644
--- a/src/nvim/spell.c
+++ b/src/nvim/spell.c
@@ -4131,11 +4131,11 @@ void spell_delete_wordlist(void)
void spell_free_all(void)
{
slang_T *slang;
- buf_T *buf;
// Go through all buffers and handle 'spelllang'. <VN>
- for (buf = firstbuf; buf != NULL; buf = buf->b_next)
+ FOR_ALL_BUFFERS(buf) {
ga_clear(&buf->b_s.b_langp);
+ }
while (first_lang != NULL) {
slang = first_lang;