diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-05-08 14:00:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-08 14:00:45 +0800 |
commit | 064f3e42e8d33b0a9e560dfb7c9a42b2fc1ed868 (patch) | |
tree | b4b88158e4457ff9b9ee5a44073881d5eec5cdcc /src/nvim/change.c | |
parent | 17c89eac1a384aaf9956ed75e60295aba8c78d01 (diff) | |
download | rneovim-064f3e42e8d33b0a9e560dfb7c9a42b2fc1ed868.tar.gz rneovim-064f3e42e8d33b0a9e560dfb7c9a42b2fc1ed868.tar.bz2 rneovim-064f3e42e8d33b0a9e560dfb7c9a42b2fc1ed868.zip |
refactor(change): check all tabpages in changed_lines_invalidate_buf() (#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().
Diffstat (limited to 'src/nvim/change.c')
-rw-r--r-- | src/nvim/change.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/change.c b/src/nvim/change.c index 0355f7bf3d..05772d39e9 100644 --- a/src/nvim/change.c +++ b/src/nvim/change.c @@ -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); } |