]> git.armaanb.net Git - st.git/blobdiff - st.c
fix regression by selecting clipboard text
[st.git] / st.c
diff --git a/st.c b/st.c
index 65a0cb61197400aa7dbb79a4ff42a261bad1423f..46c954ba8bc7276168cfd0129b8e6526b1591715 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();
@@ -740,7 +740,6 @@ sigchld(int a)
        exit(0);
 }
 
-
 void
 stty(char **args)
 {
@@ -762,7 +761,7 @@ stty(char **args)
        }
        *q = '\0';
        if (system(cmd) != 0)
-           perror("Couldn't call stty");
+               perror("Couldn't call stty");
 }
 
 int