X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=46c954ba8bc7276168cfd0129b8e6526b1591715;hb=6ac8c8aa50d521f82d491ab54eb972660fdf3207;hp=75c3dd1039f9bdfe9d5051d4f8514c236c600ccf;hpb=20e0da7f14cc5f30863e0b8014fa223fbaff1e30;p=st.git diff --git a/st.c b/st.c index 75c3dd1..46c954b 100644 --- a/st.c +++ b/st.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -460,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(); @@ -739,7 +740,6 @@ sigchld(int a) exit(0); } - void stty(char **args) { @@ -761,7 +761,7 @@ stty(char **args) } *q = '\0'; if (system(cmd) != 0) - perror("Couldn't call stty"); + perror("Couldn't call stty"); } int