Introduction
Introduction Statistics Contact Development Disclaimer Help
tfixed newline bug. - st - [fork] customized build of st, the simple terminal
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit 9e004846def39ee73eeb06ba9b1be0e389752441
parent 68d8fcf62a4f016c0292db543c1c2e694afc5b54
Author: AurĂ©lien Aptel <[email protected]>
Date: Thu, 14 Oct 2010 19:21:12 +0200
fixed newline bug.
Diffstat:
M st.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/st.c b/st.c
t@@ -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
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.