mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 20:54:04 +08:00
Fix prompt under Windows.
The fix is obviously a hack caused by that NOT_A_WCHAR doesn't fit in wchar_t. Better fix would be nice.
This commit is contained in:
parent
cd7f1a15f8
commit
6596d91c82
|
@ -1619,8 +1619,9 @@ static bool unescape_string_internal(const wchar_t * const input, const size_t i
|
|||
}
|
||||
}
|
||||
|
||||
wchar_t not_a_wchar = NOT_A_WCHAR;
|
||||
/* Now maybe append the char */
|
||||
if (to_append != NOT_A_WCHAR)
|
||||
if (to_append != not_a_wchar)
|
||||
{
|
||||
result.push_back(to_append);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user