Replace FOR_ALL_WINDOWS with FOR_ALL_WINDOWS_IN_TAB(curtab)

This commit is contained in:
Wayne Rowcliffe
2014-09-19 23:28:50 -05:00
parent bd1ecad4f1
commit 9b6f192693
21 changed files with 56 additions and 58 deletions

View File

@@ -987,7 +987,7 @@ void syn_stack_free_all(synblock_T *block)
syn_stack_free_block(block);
/* When using "syntax" fold method, must update all folds. */
FOR_ALL_WINDOWS(wp) {
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
if (wp->w_s == block && foldmethodIsSyntax(wp)) {
foldUpdateAll(wp);
}
@@ -1074,7 +1074,7 @@ void syn_stack_apply_changes(buf_T *buf)
{
syn_stack_apply_changes_block(&buf->b_s, buf);
FOR_ALL_WINDOWS(wp) {
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
if ((wp->w_buffer == buf) && (wp->w_s != &buf->b_s)) {
syn_stack_apply_changes_block(wp->w_s, buf);
}