fixed newline bug. - st - Personal fork of st
 (HTM) git clone git://git.drkhsh.at/st.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 9e004846def39ee73eeb06ba9b1be0e389752441
 (DIR) parent 68d8fcf62a4f016c0292db543c1c2e694afc5b54
 (HTM) Author: Aurélien Aptel <aurelien.aptel@gmail.com>
       Date:   Thu, 14 Oct 2010 19:21:12 +0200
       
       fixed newline bug.
       
       Diffstat:
         M st.c                                |       3 ++-
       
       1 file changed, 2 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/st.c b/st.c
       @@ -627,12 +627,13 @@ tscrollup(int orig, int n) {
        
        void
        tnewline(void) {
       +        int x = term.c.x+1 < term.col ? term.c.x : 0;
                int y = term.c.y;
                if(term.c.y == term.bot)
                        tscrollup(term.top, 1);
                else
                        y++;
       -        tmoveto(0, y);
       +        tmoveto(x, y);
        }
        
        void