aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurélien Aptel <aurelien.aptel@gmail.com>2010-08-26 21:34:37 +0200
committerAurélien Aptel <aurelien.aptel@gmail.com>2010-08-26 21:34:37 +0200
commit5c93f399c564f3475ffa4d3b3314a06db533e410 (patch)
treed4f74abef15a7d24a599d1f2a6179d5d6152def7
parent44226483fb0a3d6270970399d8a91abb2d16146b (diff)
downloadst-5c93f399c564f3475ffa4d3b3314a06db533e410.tar.gz
st-5c93f399c564f3475ffa4d3b3314a06db533e410.tar.bz2
clean \t.
-rw-r--r--st.c7
1 files changed, 1 insertions, 6 deletions
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