X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=bef3039a8ad1c7d8b67e326ee3b071dd42f19f1f;hb=5c93f399c564f3475ffa4d3b3314a06db533e410;hp=04ff1b94038ad4cb846132adaa9cb99482bbfac9;hpb=44226483fb0a3d6270970399d8a91abb2d16146b;p=st.git diff --git a/st.c b/st.c index 04ff1b9..bef3039 100644 --- a/st.c +++ b/st.c @@ -861,12 +861,7 @@ csireset(void) { void tputtab(void) { int space = TAB - term.c.x % TAB; - - if(term.c.x + space >= term.col) - space--; - - for(; space > 0; space--) - tmovecursor(CURSOR_RIGHT); + tmoveto(term.c.x + space, term.c.y); } void