X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=st.c;h=9667dbdb509c12b96724c2c15f7cedd42d491965;hb=42b2912e2151f02e181bd014ce1610f7e03a7d07;hp=8b0e5104eff84880e2356874e191dc282185e91f;hpb=5d611cd5476b56884077120bc2a6ba9727fcdd2c;p=st.git 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) { void twrapcursor(void) { int y = term.c.y+1; - if(y > term.bot) { - tmoveto(0, term.bot); - tscroll(); - } else - tmoveto(0, y); + if(y > term.bot) { + tmoveto(0, term.bot); + tscroll(); + } else + tmoveto(0, y); } void @@ -971,10 +971,10 @@ tputc(char c) { break; default: tsetchar(c); - if(term.c.x+1 < term.col) { - tmoveto(term.c.x+1, term.c.y); - } else if(IS_SET(MODE_WRAP)) - twrapcursor(); + if(term.c.x+1 < term.col) { + tmoveto(term.c.x+1, term.c.y); + } else if(IS_SET(MODE_WRAP)) + twrapcursor(); break; } }