Mercurial > vim
diff src/window.c @ 815:c68b7b2b9e07
updated for version 7.0c02
author | vimboss |
---|---|
date | Tue, 28 Mar 2006 20:57:42 +0000 |
parents | b5aed52a4881 |
children | 23f82b5d2814 |
line wrap: on
line diff
--- a/src/window.c +++ b/src/window.c @@ -3192,6 +3192,18 @@ win_new_tabpage(after) newtp->tp_topframe = topframe; last_status(FALSE); + +#if defined(FEAT_GUI) + /* 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 + redraw_all_later(CLEAR); #ifdef FEAT_AUTOCMD apply_autocmds(EVENT_TABENTER, NULL, NULL, FALSE, curbuf);