aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--st.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/st.c b/st.c
index 8b0e510..9667dbd 100644
--- a/st.c
+++ b/st.c
@@ -440,11 +440,11 @@ tmoveto(int x, int y) {
440void 440void
441twrapcursor(void) { 441twrapcursor(void) {
442 int y = term.c.y+1; 442 int y = term.c.y+1;
443 if(y > term.bot) { 443 if(y > term.bot) {
444 tmoveto(0, term.bot); 444 tmoveto(0, term.bot);
445 tscroll(); 445 tscroll();
446 } else 446 } else
447 tmoveto(0, y); 447 tmoveto(0, y);
448} 448}
449 449
450void 450void
@@ -971,10 +971,10 @@ tputc(char c) {
971 break; 971 break;
972 default: 972 default:
973 tsetchar(c); 973 tsetchar(c);
974 if(term.c.x+1 < term.col) { 974 if(term.c.x+1 < term.col) {
975 tmoveto(term.c.x+1, term.c.y); 975 tmoveto(term.c.x+1, term.c.y);
976 } else if(IS_SET(MODE_WRAP)) 976 } else if(IS_SET(MODE_WRAP))
977 twrapcursor(); 977 twrapcursor();
978 break; 978 break;
979 } 979 }
980 } 980 }