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 a8de17d..8c42a9c 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];