X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=f87412761b88210cd9423c8dd08dfe4ea4922447;hb=23ed12857f113603b689521d3f6e40ff954d25bb;hp=b2bcfe9b5eb3a26153c5815e8174fbc647a2e893;hpb=ecac5ee35ef006001b280461ed3f9812d855250c;p=st.git diff --git a/st.c b/st.c index b2bcfe9..f874127 100644 --- a/st.c +++ b/st.c @@ -2392,7 +2392,7 @@ tputtab(int n) { for(--x; x > 0 && !term.tabs[x]; --x) /* nothing */ ; } - tmoveto(x, term.c.y); + term.c.x = LIMIT(x, 0, term.col-1); } void