Aurélien Aptel пре 14 година
родитељ
комит
9e004846de
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      st.c

+ 2 - 1
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