X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=7051a4a28534292b02237705ae73d0e62d0ad929;hb=9eb70a2d3ecbd96a92e5f824868500baba74b688;hp=827ed08555eb39a359a9ecd5a8e1059a89d83266;hpb=69d1fe06a97619e80872aaae2c4c97ced0540b67;p=st.git diff --git a/st.c b/st.c index 827ed08..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 @@ -2648,7 +2648,6 @@ tputc(char *c, int len) { c = "\357\277\275"; /* UTF_INVALID */ width = 1; } - control = ISCONTROLC1(unicodep); ascii = unicodep; }