[hackers] [st] clean \t. || Aurélien Aptel

From: <hg_AT_suckless.org>
Date: Thu, 26 Aug 2010 17:39:56 +0000 (UTC)

changeset: 90:5258f6b11f17
user: Aurélien Aptel <aurelien.aptel_AT_gmail.com>
date: Thu Aug 26 21:34:37 2010 +0200
files: st.c
description:
clean \t.

diff -r 06ca7d98c098 -r 5258f6b11f17 st.c
--- a/st.c Thu Aug 26 21:33:53 2010 +0200
+++ b/st.c Thu Aug 26 21:34:37 2010 +0200
@@ -861,12 +861,7 @@
 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
Received on Thu Aug 26 2010 - 19:39:56 CEST

This archive was generated by hypermail 2.2.0 : Thu Aug 26 2010 - 19:48:07 CEST