aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-01-07 22:33:57 +0100
committerGitHub <noreply@github.com>2019-01-07 22:33:57 +0100
commit0ccb9704d7a97e1b9bf7672db8904d0f9716b890 (patch)
tree6fed1c933e175e0c5819cbec1a9c543739f59a42
parent3081f6098987d49bb6584be94b851642a4bc4355 (diff)
downloadrneovim-0ccb9704d7a97e1b9bf7672db8904d0f9716b890.tar.gz
rneovim-0ccb9704d7a97e1b9bf7672db8904d0f9716b890.tar.bz2
rneovim-0ccb9704d7a97e1b9bf7672db8904d0f9716b890.zip
vim-patch:8.1.0700: using "gt" sometimes does not redraw a tab (#9464)
Problem: Using "gt" sometimes does not redraw a tab. (Jason Franklin) Solution: Always set must_redraw in redraw_all_later(). https://github.com/vim/vim/commit/04b4e1a42409f81d65ae4801ac867dc0bba3d7b8 ref https://github.com/vim/vim/commit/bf3250a8ad39797e3ccdac82d20c6f19533419e4#r31852304 > I fixed it in a more general way, in that if we don't find a window > that doesn't have the redraw type set it, then it will not set > must_redraw, even though that's clearly intended. ref #9152 ref #9155 NA patches: vim-patch:8.1.0698 vim-patch:8.1.0699
-rw-r--r--src/nvim/screen.c4
-rw-r--r--src/nvim/window.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 98b0378b18..fe3639c5e1 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -185,6 +185,10 @@ void redraw_all_later(int type)
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
redraw_win_later(wp, type);
}
+ // This may be needed when switching tabs.
+ if (must_redraw < type) {
+ must_redraw = type;
+ }
}
void screen_invalidate_highlights(void)
diff --git a/src/nvim/window.c b/src/nvim/window.c
index f892757136..97c708ed20 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -3355,7 +3355,6 @@ static void enter_tabpage(tabpage_T *tp, buf_T *old_curbuf, int trigger_enter_au
}
redraw_all_later(NOT_VALID);
- must_redraw = NOT_VALID;
}
/// called when changing current tabpage from old_curtab to curtab