Skip to content

Commit

Permalink
refactor(change): check all tabpages in changed_lines_invalidate_buf() (
Browse files Browse the repository at this point in the history
#28666)

This most likely doesn't matter as all windows are redrawn when
switching tabpages and w_valid is reset is entering window, but still
check all tabpages for consistency with changed_common().
  • Loading branch information
zeertzjq committed May 8, 2024
1 parent 17c89ea commit 064f3e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nvim/change.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ static void changed_lines_invalidate_win(win_T *wp, linenr_T lnum, colnr_T col,
void changed_lines_invalidate_buf(buf_T *buf, linenr_T lnum, colnr_T col, linenr_T lnume,
linenr_T xtra)
{
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
FOR_ALL_TAB_WINDOWS(tp, wp) {
if (wp->w_buffer == buf) {
changed_lines_invalidate_win(wp, lnum, col, lnume, xtra);
}
Expand Down

0 comments on commit 064f3e4

Please sign in to comment.