mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-23 16:51:16 -03:00
Fix for crash when unescaping a string with unbalanced quotes
Add Mac OS X's default term name to terms for which we know how to set a title
This commit is contained in:
@@ -627,7 +627,11 @@ void reader_write_title()
|
||||
return;
|
||||
}
|
||||
|
||||
if( !contains( term, L"xterm", L"screen", L"nxterm", L"rxvt" ) )
|
||||
bool recognized = false;
|
||||
recognized = recognized || contains( term, L"xterm", L"screen", L"nxterm", L"rxvt" );
|
||||
recognized = recognized || ! wcsncmp(term, L"xterm-", wcslen(L"xterm-"));
|
||||
|
||||
if( ! recognized )
|
||||
{
|
||||
char *n = ttyname( STDIN_FILENO );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user