selextend: clarify: !sel.mode == SEL_IDLE
authorHiltjo Posthuma <hiltjo@codemadness.org>
Sat, 17 Mar 2018 12:48:29 +0000 (13:48 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sat, 17 Mar 2018 12:48:29 +0000 (13:48 +0100)
st.c

diff --git a/st.c b/st.c
index 581647b..46c954b 100644 (file)
--- a/st.c
+++ b/st.c
@@ -461,7 +461,7 @@ selextend(int col, int row, int type, int done)
 {
        int oldey, oldex, oldsby, oldsey, oldtype;
 
-       if (!sel.mode)
+       if (sel.mode == SEL_IDLE)
                return;
        if (done && sel.mode == SEL_EMPTY) {
                selclear();