From: Jakub Leszczak <szatan@gecc.xyz>
Date: Wed, 6 May 2020 11:35:06 +0000 (+0200)
Subject: Fix selection: selclear in tputc
X-Git-Url: https://git.owens.tech/wrapped.html/wrapped.html/git?a=commitdiff_plain;h=8304d4f0599b1be2226c28c553547070658d4af3;p=st.git

Fix selection: selclear in tputc
---

diff --git a/st.c b/st.c
index a8de17d..8c42a9c 100644
--- 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];