From: Christoph Lohmann <20h@r-36.net>
Date: Mon, 5 Oct 2015 19:18:34 +0000 (+0200)
Subject: When the cursor is moved, clear the selection.
X-Git-Url: https://git.owens.tech///git?a=commitdiff_plain;h=91c70213d1e595467b14ce6d28f333dbedd97cab;p=st.git

When the cursor is moved, clear the selection.
---

diff --git a/st.c b/st.c
index e0417e5..0c528d5 100644
--- a/st.c
+++ b/st.c
@@ -1811,6 +1811,7 @@ tmoveto(int x, int y)
 {
 	int miny, maxy;
 
+	selclear(NULL);
 	if (term.c.state & CURSOR_ORIGIN) {
 		miny = term.top;
 		maxy = term.bot;