When the cursor is moved, clear the selection.
authorChristoph Lohmann <20h@r-36.net>
Mon, 5 Oct 2015 19:18:34 +0000 (21:18 +0200)
committerChristoph Lohmann <20h@r-36.net>
Mon, 5 Oct 2015 19:18:34 +0000 (21:18 +0200)
st.c

diff --git a/st.c b/st.c
index e0417e5..0c528d5 100644 (file)
--- 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;