Skip to content

Commit e53a0d4

Browse files
k-takatabrammool
authored andcommitted
patch 9.0.0392: inverted condition is a bit confusing
Problem: Inverted condition is a bit confusing. Solution: Remove the "!" and swap the blocks. (Ken Takata)
1 parent 3411265 commit e53a0d4

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

src/os_win32.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8197,20 +8197,20 @@ get_default_console_color(
81978197
ctermbg = -1;
81988198
if (id > 0)
81998199
syn_id2cterm_bg(id, &ctermfg, &ctermbg);
8200-
if (!USE_WT)
8201-
{
8202-
guibg = ctermbg != -1 ? ctermtoxterm(ctermbg)
8203-
: default_console_color_bg;
8204-
cterm_normal_bg_gui_color = guibg;
8205-
ctermbg = ctermbg < 0 ? 0 : ctermbg;
8206-
}
8207-
else
8200+
if (USE_WT)
82088201
{
82098202
cterm_normal_bg_gui_color = guibg =
82108203
ctermbg != -1 ? ctermtoxterm(ctermbg) : INVALCOLOR;
82118204
if (ctermbg < 0)
82128205
ctermbg = 0;
82138206
}
8207+
else
8208+
{
8209+
guibg = ctermbg != -1 ? ctermtoxterm(ctermbg)
8210+
: default_console_color_bg;
8211+
cterm_normal_bg_gui_color = guibg;
8212+
ctermbg = ctermbg < 0 ? 0 : ctermbg;
8213+
}
82148214
}
82158215

82168216
*cterm_fg = ctermfg;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,8 @@ static char *(features[]) =
703703

704704
static int included_patches[] =
705705
{ /* Add new patch number below this line */
706+
/**/
707+
392,
706708
/**/
707709
391,
708710
/**/

0 commit comments

Comments
 (0)