From 548164cd5e7888c772ac2284d20dbe5cb9518332 Mon Sep 17 00:00:00 2001 From: Jan Kanis Date: Tue, 24 Jan 2012 18:39:47 +0100 Subject: [PATCH] do not escape 'commandline' output without the -o flag --- CHANGELOG | 3 +++ builtin_commandline.c | 6 ++---- 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 CHANGELOG diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 000000000..da7b35942 --- /dev/null +++ b/CHANGELOG @@ -0,0 +1,3 @@ +24-01-2012 Jan Kanis + * Added a changelog file + * removed unescaping if the 'commandline' builtin is called without the -o (tokenise) flag diff --git a/builtin_commandline.c b/builtin_commandline.c index f23e1153f..ddcba6ac8 100644 --- a/builtin_commandline.c +++ b/builtin_commandline.c @@ -188,7 +188,7 @@ static void write_part( const wchar_t *begin, } else { - wchar_t *buff, *esc; + wchar_t *buff; if( cut_at_cursor ) { @@ -196,14 +196,12 @@ static void write_part( const wchar_t *begin, } buff = wcsndup( begin, end-begin ); - esc = unescape( buff, UNESCAPE_INCOMPLETE ); // debug( 0, L"woot2 %ls -> %ls", buff, esc ); - sb_append( sb_out, esc ); + sb_append( sb_out, buff ); sb_append( sb_out, L"\n" ); - free( esc ); free( buff ); }