Merge pull request #1024 from war1025/dev/for_all_buffers

Add FOR_ALL_BUFFERS helper
This commit is contained in:
Justin M. Keyes
2014-08-19 23:49:25 -04:00
16 changed files with 145 additions and 131 deletions

View File

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