diff options
| author | Aurélien Aptel <aurelien.aptel@gmail.com> | 2010-10-14 19:21:12 +0200 | 
|---|---|---|
| committer | Aurélien Aptel <aurelien.aptel@gmail.com> | 2010-10-14 19:21:12 +0200 | 
| commit | 5822a9fe61a7d4385e9a90f2211a9b6665c797cc (patch) | |
| tree | f670d15a194bc65977443a571eb0d0e3b4e14c4a | |
| parent | 9daaad22148d4d4f72e5211dccdbb63b1b4da8fe (diff) | |
| download | st-5822a9fe61a7d4385e9a90f2211a9b6665c797cc.tar.xz st-5822a9fe61a7d4385e9a90f2211a9b6665c797cc.zip | |
fixed newline bug.
| -rw-r--r-- | st.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| @@ -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 | 
