X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;ds=sidebyside;f=st.c;h=7051a4a28534292b02237705ae73d0e62d0ad929;hb=9eb70a2d3ecbd96a92e5f824868500baba74b688;hp=6d2097718ee9c42f0ed7a9f3ffd95ded3e53a1b5;hpb=5bb90125c80a9409745bd7551aaae478dda3f890;p=st.git diff --git a/st.c b/st.c index 6d20977..7051a4a 100644 --- a/st.c +++ b/st.c @@ -2390,7 +2390,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