]> git.armaanb.net Git - st.git/blobdiff - st.c
Merge branch 'master' of ssh://suckless.org/gitrepos/st
[st.git] / 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