mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-25 16:35:46 +01:00
fixed newline bug.
This commit is contained in:
parent
68d8fcf62a
commit
9e004846de
1 changed files with 2 additions and 1 deletions
3
st.c
3
st.c
|
@ -627,12 +627,13 @@ tscrollup(int orig, int n) {
|
||||||
|
|
||||||
void
|
void
|
||||||
tnewline(void) {
|
tnewline(void) {
|
||||||
|
int x = term.c.x+1 < term.col ? term.c.x : 0;
|
||||||
int y = term.c.y;
|
int y = term.c.y;
|
||||||
if(term.c.y == term.bot)
|
if(term.c.y == term.bot)
|
||||||
tscrollup(term.top, 1);
|
tscrollup(term.top, 1);
|
||||||
else
|
else
|
||||||
y++;
|
y++;
|
||||||
tmoveto(0, y);
|
tmoveto(x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue