patch 9.1.1436: GUI control code is displayed on the console on startup

Problem:  GUI control code is displayed on the console on startup
Solution: check if Vim is starting up (Hirohito Higashi)

closes: #17456

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Hirohito Higashi
2025-06-07 17:49:35 +02:00
committed by Christian Brabandt
parent 2897a8d040
commit ce2769b5fe
2 changed files with 3 additions and 1 deletions

View File

@ -709,6 +709,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1436,
/**/
1435,
/**/

View File

@ -6227,7 +6227,7 @@ shell_new_columns(void)
if (!skip_win_fix_scroll)
win_fix_scroll(TRUE);
#ifdef FEAT_GUI
if (gui.in_use)
if (gui.in_use && !gui.starting)
{
if (scroll_region)
scroll_region_reset();