X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=46c954ba8bc7276168cfd0129b8e6526b1591715;hb=6ac8c8aa50d521f82d491ab54eb972660fdf3207;hp=65a0cb61197400aa7dbb79a4ff42a261bad1423f;hpb=8b8255ac0e188445f6904ff16272e9e93093cbde;p=st.git diff --git a/st.c b/st.c index 65a0cb6..46c954b 100644 --- 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