aboutsummaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2015-10-05 21:18:34 +0200
committerChristoph Lohmann <20h@r-36.net>2015-10-05 21:18:34 +0200
commit91c70213d1e595467b14ce6d28f333dbedd97cab (patch)
tree3931fa23a702e1a066754c856e85d98f3e5561ec /st.c
parent2677296147fe658376be67821449b8f232c65064 (diff)
downloadst-91c70213d1e595467b14ce6d28f333dbedd97cab.tar.gz
When the cursor is moved, clear the selection.
Diffstat (limited to 'st.c')
-rw-r--r--st.c1
1 files changed, 1 insertions, 0 deletions
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;
remember that computers suck.