diff options
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index c45022191..c37ec6769 100644 --- a/src/window.c +++ b/src/window.c @@ -3113,6 +3113,12 @@ alloc_tabpage() tp = (tabpage_T *)alloc_clear((unsigned)sizeof(tabpage_T)); if (tp != NULL) { +# ifdef FEAT_GUI + int i; + + for (i = 0; i < 3; i++) + tp->tp_prev_which_scrollbars[i] = -1; +# endif # ifdef FEAT_DIFF tp->tp_diff_invalid = TRUE; # endif @@ -3395,7 +3401,10 @@ enter_tabpage(tp, old_curbuf) /* When 'guioptions' includes 'L' or 'R' may have to remove or add * scrollbars. Have to update them anyway. */ if (gui.in_use && starting == 0) + { + gui_init_which_components(NULL); gui_update_scrollbars(TRUE); + } need_mouse_correct = TRUE; #endif |