fish_indent: don't indent commands after a pipe

commands after a pipe tend to be at the same line of previous command.
So don't indent them.
This commit is contained in:
Grissiom 2010-12-02 23:42:24 +08:00
parent 46986ad4c2
commit 74f06d550a

View file

@ -132,7 +132,7 @@ static int indent( string_buffer_t *out, wchar_t *in, int flags )
}
if( do_indent && flags)
if( do_indent && flags && prev_type != TOK_PIPE )
{
insert_tabs( out, indent );
}