Merge branch 'master' of ssh://suckless.org/gitrepos/st
authorRoberto E. Vargas Caballero <k0ga@shike2.com>
Mon, 13 Apr 2015 20:01:40 +0000 (22:01 +0200)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Mon, 13 Apr 2015 20:01:40 +0000 (22:01 +0200)
st.c

diff --git a/st.c b/st.c
index b2bcfe9..f874127 100644 (file)
--- a/st.c
+++ b/st.c
@@ -2392,7 +2392,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