From 737500862bdb2c4cf86326f86c176a196e60e617 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Mon, 5 Jul 2021 19:41:05 -0400 Subject: [PATCH] pdc_wt overrides pdc_conemu -- allows starting WT from ConEmu. (Note that the reverse seems unnecessary -- some of the ConEmu checks may be unneeded?) --- wincon/pdcscrn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wincon/pdcscrn.c b/wincon/pdcscrn.c index dc963341..e2f4ddd9 100644 --- a/wincon/pdcscrn.c +++ b/wincon/pdcscrn.c @@ -402,7 +402,7 @@ int PDC_scr_open(void) is_nt = !(GetVersion() & 0x80000000); pdc_wt = !!getenv("WT_SESSION"); - str = getenv("ConEmuANSI"); + str = pdc_wt ? NULL : getenv("ConEmuANSI"); pdc_conemu = !!str; pdc_ansi = pdc_wt ? TRUE : pdc_conemu ? !strcmp(str, "ON") : FALSE;