Additional FOR_ALL_WINDOWS usage

This commit is contained in:
Wayne Rowcliffe
2014-08-20 19:39:05 -05:00
parent fe99930c46
commit ac0b9714ed
14 changed files with 123 additions and 123 deletions

View File

@@ -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) {