projects
/
suckless
/
st.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68d8fcf
)
fixed newline bug.
author
Aurélien Aptel
<aurelien.aptel@gmail.com>
Thu, 14 Oct 2010 17:21:12 +0000
(19:21 +0200)
committer
Aurélien Aptel
<aurelien.aptel@gmail.com>
Thu, 14 Oct 2010 17:21:12 +0000
(19:21 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index 004220476a3af0ff275c2b8d5b87dfc8f05e36dd..0c6423aba5a00708b2f9426695449e21886b5180 100644
(file)
--- 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