]> git.armaanb.net Git - st.git/commitdiff
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 b2bcfe9b5eb3a26153c5815e8174fbc647a2e893..f87412761b88210cd9423c8dd08dfe4ea4922447 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