mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.3.643
Problem: MS-Windows: When starting gvim maximized 'lines' and 'columns' are wrong. (Christian Robinson) Solution: Move the check for gui.starting from ui_get_shellsize() to check_shellsize().
This commit is contained in:
parent
8f91399366
commit
3633dc0129
@ -3006,7 +3006,13 @@ shell_resized_check()
|
|||||||
int old_Rows = Rows;
|
int old_Rows = Rows;
|
||||||
int old_Columns = Columns;
|
int old_Columns = Columns;
|
||||||
|
|
||||||
if (!exiting)
|
if (!exiting
|
||||||
|
#ifdef FEAT_GUI
|
||||||
|
/* Do not get the size when executing a shell command during
|
||||||
|
* startup. */
|
||||||
|
&& !gui.starting
|
||||||
|
#endif
|
||||||
|
)
|
||||||
{
|
{
|
||||||
(void)ui_get_shellsize();
|
(void)ui_get_shellsize();
|
||||||
check_shellsize();
|
check_shellsize();
|
||||||
|
3
src/ui.c
3
src/ui.c
@ -298,9 +298,6 @@ ui_get_shellsize()
|
|||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
#ifdef FEAT_GUI
|
#ifdef FEAT_GUI
|
||||||
if (gui.starting)
|
|
||||||
/* possibly a system call during startup, check later */
|
|
||||||
return OK;
|
|
||||||
if (gui.in_use)
|
if (gui.in_use)
|
||||||
retval = gui_get_shellsize();
|
retval = gui_get_shellsize();
|
||||||
else
|
else
|
||||||
|
@ -719,6 +719,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
643,
|
||||||
/**/
|
/**/
|
||||||
642,
|
642,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user