aboutsummaryrefslogtreecommitdiff
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
parent2677296147fe658376be67821449b8f232c65064 (diff)
downloadst-patched-91c70213d1e595467b14ce6d28f333dbedd97cab.tar.bz2
st-patched-91c70213d1e595467b14ce6d28f333dbedd97cab.tar.xz
st-patched-91c70213d1e595467b14ce6d28f333dbedd97cab.zip
When the cursor is moved, clear the selection.
-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)
1811{ 1811{
1812 int miny, maxy; 1812 int miny, maxy;
1813 1813
1814 selclear(NULL);
1814 if (term.c.state & CURSOR_ORIGIN) { 1815 if (term.c.state & CURSOR_ORIGIN) {
1815 miny = term.top; 1816 miny = term.top;
1816 maxy = term.bot; 1817 maxy = term.bot;