TerminalFont: Fix #510

3rd try
This commit is contained in:
李通洲 2023-08-06 09:25:09 +08:00
parent 97f3860d1e
commit eef8040ea9

View File

@ -355,7 +355,7 @@ static bool detectTerminalFontCommon(const FFTerminalShellResult* terminalShell,
#ifndef _WIN32
else if(ffStrbufStartsWithIgnCaseS(&terminalShell->terminalExe, "/dev/pts/"))
ffStrbufAppendS(&terminalFont->error, "Terminal font detection is not supported on PTS");
else if(ffStrbufIgnCaseEqualS(&terminalShell->shellPrettyName, "kitty"))
else if(ffStrbufIgnCaseEqualS(&terminalShell->terminalPrettyName, "kitty"))
detectKitty(terminalFont);
else if(ffStrbufStartsWithIgnCaseS(&terminalShell->terminalExe, "/dev/tty"))
detectTTY(terminalFont);