diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-02-15 22:12:56 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-02-15 22:12:56 +0000 |
commit | e45828b593d8308535b80ef17fe660ead6fab533 (patch) | |
tree | 42376a0e6dbdc96f82370050a0db7c6a43ec3105 /src/gui.c | |
parent | 98ea5defcfa898a2689a43b00ce4356b1909b264 (diff) | |
download | vim-git-e45828b593d8308535b80ef17fe660ead6fab533.tar.gz |
updated for version 7.0198
Diffstat (limited to 'src/gui.c')
-rw-r--r-- | src/gui.c | 33 |
1 files changed, 32 insertions, 1 deletions
@@ -1292,6 +1292,7 @@ again: #endif busy = FALSE; + /* * We could have been called again while redrawing the screen. * Need to do it all again with the latest size then. @@ -1405,6 +1406,9 @@ gui_set_shellsize(mustset, fit_to_display) min_width = base_width + MIN_COLUMNS * gui.char_width; min_height = base_height + MIN_LINES * gui.char_height; +# ifdef FEAT_WINDOWS + min_height += tabpageline_height() * gui.char_height; +# endif gui_mch_set_shellsize(width, height, min_width, min_height, base_width, base_height); @@ -3070,6 +3074,8 @@ gui_menu_cb(menu) } #endif +static int prev_which_scrollbars[3] = {-1, -1, -1}; + /* * Set which components are present. * If "oldval" is not NULL, "oldval" is the previous value, the new * value is @@ -3080,7 +3086,6 @@ gui_menu_cb(menu) gui_init_which_components(oldval) char_u *oldval; { - static int prev_which_scrollbars[3] = {-1, -1, -1}; #ifdef FEAT_MENU static int prev_menu_is_active = -1; #endif @@ -3278,6 +3283,32 @@ gui_init_which_components(oldval) * Scrollbar stuff: */ +#if defined(FEAT_WINDOWS) || defined(PROTO) +/* + * Remove all scrollbars. Used before switching to another tab page. + */ + void +gui_remove_scrollbars() +{ + int i; + win_T *wp; + + for (i = 0; i < 3; i++) + { + if (i == SBAR_BOTTOM) + gui_mch_enable_scrollbar(&gui.bottom_sbar, FALSE); + else + { + FOR_ALL_WINDOWS(wp) + { + gui_do_scrollbar(wp, i, FALSE); + } + } + prev_which_scrollbars[i] = -1; + } +} +#endif + void gui_create_scrollbar(sb, type, wp) scrollbar_T *sb; |