mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-15 09:21:15 -03:00
Stop unescaping strings with commandline -b
The fix for #2075 inadvertently started unescaping the strings emitted from `commandline -b`. Only strings emitted with the `-o` flag are supposed to be unescaped. Fixes #2210.
This commit is contained in:
@@ -234,9 +234,7 @@ static void write_part(const wchar_t *begin,
|
||||
}
|
||||
|
||||
// debug( 0, L"woot2 %ls -> %ls", buff, esc );
|
||||
wcstring tmp = wcstring(begin, end - begin);
|
||||
unescape_string_in_place(&tmp, UNESCAPE_INCOMPLETE);
|
||||
streams.out.append(tmp);
|
||||
streams.out.append(begin, end - begin);
|
||||
streams.out.append(L"\n");
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user