]> git.armaanb.net Git - st.git/commitdiff
Fix selection: selclear in tputc
authorJakub Leszczak <szatan@gecc.xyz>
Wed, 6 May 2020 11:35:06 +0000 (13:35 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Tue, 12 May 2020 13:37:59 +0000 (15:37 +0200)
st.c

diff --git a/st.c b/st.c
index a8de17d64f6104aa57a370b9a09fc854fbe6bff9..8c42a9caa273a1c6cceb039d290036ed13440533 100644 (file)
--- a/st.c
+++ b/st.c
@@ -2412,7 +2412,7 @@ check_control_code:
                 */
                return;
        }
-       if (sel.ob.x != -1 && BETWEEN(term.c.y, sel.ob.y, sel.oe.y))
+       if (selected(term.c.x, term.c.y))
                selclear();
 
        gp = &term.line[term.c.y][term.c.x];