mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-13 00:17:25 +00:00
do not escape 'commandline' output without the -o flag
This commit is contained in:
parent
8b407a32ff
commit
548164cd5e
2 changed files with 5 additions and 4 deletions
3
CHANGELOG
Normal file
3
CHANGELOG
Normal 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
|
|
@ -188,7 +188,7 @@ static void write_part( const wchar_t *begin,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wchar_t *buff, *esc;
|
wchar_t *buff;
|
||||||
|
|
||||||
if( cut_at_cursor )
|
if( cut_at_cursor )
|
||||||
{
|
{
|
||||||
|
@ -196,14 +196,12 @@ static void write_part( const wchar_t *begin,
|
||||||
}
|
}
|
||||||
|
|
||||||
buff = wcsndup( begin, end-begin );
|
buff = wcsndup( begin, end-begin );
|
||||||
esc = unescape( buff, UNESCAPE_INCOMPLETE );
|
|
||||||
|
|
||||||
// debug( 0, L"woot2 %ls -> %ls", buff, esc );
|
// debug( 0, L"woot2 %ls -> %ls", buff, esc );
|
||||||
|
|
||||||
sb_append( sb_out, esc );
|
sb_append( sb_out, buff );
|
||||||
sb_append( sb_out, L"\n" );
|
sb_append( sb_out, L"\n" );
|
||||||
|
|
||||||
free( esc );
|
|
||||||
free( buff );
|
free( buff );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue