Make Windows REPLs great again

This commit is contained in:
Justine Tunney 2024-08-17 06:32:10 -07:00
parent 8e14b27749
commit 77be460290
No known key found for this signature in database
GPG key ID: BE714B4575D6E328

View file

@ -408,9 +408,7 @@ static int linenoiseIsUnsupportedTerm(void) {
char *term;
static char once, res;
if (!once) {
if (IsWindows()) {
res = 1;
} else if ((term = getenv("TERM"))) {
if ((term = getenv("TERM"))) {
for (i = 0; i < sizeof(kUnsupported) / sizeof(*kUnsupported); i++) {
if (!strcasecmp(term, kUnsupported[i])) {
res = 1;