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
commitab5e72dc3940e640c635a149dda035137d0e966f (patch)
treed4f74abef15a7d24a599d1f2a6179d5d6152def7
parentf181bb29d898642470cb2026264debcac1449e95 (diff)
downloadst-ab5e72dc3940e640c635a149dda035137d0e966f.tar.gz
st-ab5e72dc3940e640c635a149dda035137d0e966f.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