mirror of
https://github.com/tmux/tmux.git
synced 2025-11-24 19:06:07 +00:00
correct test for COLORTERM containing 256
found with smatch, ok nicm@
This commit is contained in:
@@ -603,7 +603,7 @@ tty_term_create(struct tty *tty, char *name, char **caps, u_int ncaps,
|
||||
if (strcasecmp(envent->value, "truecolor") == 0 ||
|
||||
strcasecmp(envent->value, "24bit") == 0)
|
||||
tty_add_features(feat, "RGB", ",");
|
||||
else if (strstr(s, "256") != NULL)
|
||||
else if (strstr(envent->value, "256") != NULL)
|
||||
tty_add_features(feat, "256", ",");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user