From 74f06d550a4c2e4260a6c1f1db58260069be3904 Mon Sep 17 00:00:00 2001 From: Grissiom Date: Thu, 2 Dec 2010 23:42:24 +0800 Subject: [PATCH] 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. --- fish_indent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish_indent.c b/fish_indent.c index 31807e816..f3184c4c4 100644 --- a/fish_indent.c +++ b/fish_indent.c @@ -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 ); }