@@ -2843,7 +2843,7 @@ static int winpos_x = -1;
28432843static int winpos_y = -1 ;
28442844static int did_request_winpos = 0 ;
28452845
2846- # if ( defined(FEAT_EVAL ) && defined(HAVE_TGETENT ) ) || defined(PROTO )
2846+ # if defined(FEAT_EVAL ) || defined(FEAT_TERMINAL ) || defined(PROTO )
28472847/*
28482848 * Try getting the Vim window position from the terminal.
28492849 * Returns OK or FAIL.
@@ -4858,7 +4858,7 @@ check_termcode(
48584858
48594859 /*
48604860 * Check for a window position response from the terminal:
4861- * {lead}3;{x}: {y}t
4861+ * {lead}3;{x}; {y}t
48624862 */
48634863 else if (did_request_winpos
48644864 && ((len >= 4 && tp [0 ] == ESC && tp [1 ] == '[' )
@@ -4925,23 +4925,23 @@ check_termcode(
49254925 if (i - j >= 21 && STRNCMP (tp + j + 3 , "rgb:" , 4 ) == 0
49264926 && tp [j + 11 ] == '/' && tp [j + 16 ] == '/' )
49274927 {
4928- #ifdef FEAT_TERMINAL
4928+ # ifdef FEAT_TERMINAL
49294929 int rval = hexhex2nr (tp + j + 7 );
49304930 int gval = hexhex2nr (tp + j + 12 );
49314931 int bval = hexhex2nr (tp + j + 17 );
4932- #endif
4932+ # endif
49334933 if (is_bg )
49344934 {
49354935 char * newval = (3 * '6' < tp [j + 7 ] + tp [j + 12 ]
49364936 + tp [j + 17 ]) ? "light" : "dark" ;
49374937
49384938 LOG_TR (("Received RBG response: %s" , tp ));
49394939 rbg_status = STATUS_GOT ;
4940- #ifdef FEAT_TERMINAL
4940+ # ifdef FEAT_TERMINAL
49414941 bg_r = rval ;
49424942 bg_g = gval ;
49434943 bg_b = bval ;
4944- #endif
4944+ # endif
49454945 if (!option_was_set ((char_u * )"bg" )
49464946 && STRCMP (p_bg , newval ) != 0 )
49474947 {
@@ -4952,7 +4952,7 @@ check_termcode(
49524952 redraw_asap (CLEAR );
49534953 }
49544954 }
4955- #ifdef FEAT_TERMINAL
4955+ # ifdef FEAT_TERMINAL
49564956 else
49574957 {
49584958 LOG_TR (("Received RFG response: %s" , tp ));
@@ -4961,7 +4961,7 @@ check_termcode(
49614961 fg_g = gval ;
49624962 fg_b = bval ;
49634963 }
4964- #endif
4964+ # endif
49654965 }
49664966
49674967 /* got finished code: consume it */
0 commit comments