commands after a pipe tend to be at the same line of previous command.
So don't indent them.

---
diff --git a/fish_indent.c b/fish_indent.c
index 31807e8..f3184c4 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 );
                                        }
---

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to