Here is a patch that seems to fix the fish_indent bug I mentioned
before.  I don't fully understand the purpose of the line I commented
out so it is likely I've introduced some other bug but the patched
version of fish_indent seems to work better for me than the unpatched
version.

----------------------------------------------------------------------------
--- orig/fish_indent.c  2010-11-23 02:34:55.000000000 -0700
+++ fish-1.23.1/fish_indent.c   2010-11-23 02:35:29.000000000 -0700


@@ -171,23 +171,23 @@
                        case TOK_REDIRECT_IN:
                        case TOK_REDIRECT_FD:
                        {
-                               sb_append( out, last );
+                               /* sb_append( out, last ); */
                                switch( type )
                                {
                                        case TOK_REDIRECT_OUT:
-                                               sb_append( out, L"> " );
+                                               sb_append( out, L" > " );
                                                break;
                                                
                                        case TOK_REDIRECT_APPEND:
-                                               sb_append( out, L">> " );
+                                               sb_append( out, L" >> " );
                                                break;
                                                
                                        case TOK_REDIRECT_IN:
-                                               sb_append( out, L"< " );
+                                               sb_append( out, L" < " );
                                                break;
                                                
                                        case TOK_REDIRECT_FD:
-                                               sb_append( out, L">& " );
+                                               sb_append( out, L" >& " );
                                                break;
                                                                                
                        
                                }
----------------------------------------------------------------------------


Peace, James



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