do not escape 'commandline' output without the -o flag

This commit is contained in:
Jan Kanis 2012-01-24 18:39:47 +01:00
parent 8b407a32ff
commit 548164cd5e
2 changed files with 5 additions and 4 deletions

3
CHANGELOG Normal file
View File

@ -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

View File

@ -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 );
}