diff options
author | Kevin Ballard <kevin@sb.org> | 2016-01-10 17:13:08 -0800 |
---|---|---|
committer | Kevin Ballard <kevin@sb.org> | 2016-01-10 17:25:22 -0800 |
commit | 1dac0041d55992be1340f9b28ae425c100ff4ba7 (patch) | |
tree | 2681231dedbddf3328ed1f14eba225efe38d19cd /src/builtin_commandline.cpp | |
parent | 43728fe7a0de1aefe94502d9910ce885f8ba6ee9 (diff) |
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.
Diffstat (limited to 'src/builtin_commandline.cpp')
-rw-r--r-- | src/builtin_commandline.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/builtin_commandline.cpp b/src/builtin_commandline.cpp index 971ba208..122681af 100644 --- a/src/builtin_commandline.cpp +++ b/src/builtin_commandline.cpp @@ -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"); } |