mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Fix typo.
This commit is contained in:
parent
a863f74fc4
commit
d2739f10e1
1 changed files with 0 additions and 1 deletions
|
@ -71,7 +71,6 @@ static bool write_color_escape(char *todo, unsigned char idx, bool is_fg) {
|
|||
// We are attempting to bypass the term here. Generate the ANSI escape sequence ourself.
|
||||
char buff[16] = "";
|
||||
if (idx < 16) {
|
||||
if
|
||||
snprintf(buff, sizeof buff, "\x1b[%dm", ((idx > 7) ? 82 : 30) + idx + !is_fg * 10);
|
||||
} else {
|
||||
snprintf(buff, sizeof buff, "\x1b[%d;5;%dm", is_fg ? 38 : 48, idx);
|
||||
|
|
Loading…
Reference in a new issue