1
0
forked from aniani/vim

updated for version 7.0074

This commit is contained in:
Bram Moolenaar
2005-05-20 21:22:17 +00:00
parent 686f51ef8e
commit c1087e64bc
2 changed files with 21 additions and 2 deletions

View File

@@ -3242,10 +3242,29 @@ gui_init_which_components(oldval)
}
#endif
if (need_set_size)
{
#ifdef FEAT_GUI_GTK
long r = Rows;
long c = Columns;
#endif
/* Adjust the size of the window to make the text area keep the
* same size and to avoid that part of our window is off-screen
* and a scrollbar can't be used, for example. */
gui_set_shellsize(FALSE, fix_size);
#ifdef FEAT_GUI_GTK
/* GTK has the annoying habit of sending us resize events when
* changing the window size ourselves. This mostly happens when
* waiting for a character to arrive, quite unpredictably, and may
* change Columns and Rows when we don't want it. Wait for a
* character here to avoid this effect.
* If you remove this, please test this command for resizing
* effects: ":vsp|q|vsp|q|vsp|q" */
(void)char_avail();
Rows = r;
Columns = c;
#endif
}
}
}