X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=46c954ba8bc7276168cfd0129b8e6526b1591715;hb=6ac8c8aa50d521f82d491ab54eb972660fdf3207;hp=f46aab61c0329a11c652bbb574f9a71525dfc994;hpb=e0215d53770a9b6bc6e5d7b9a603ecd34dbd7100;p=st.git diff --git a/st.c b/st.c index f46aab6..46c954b 100644 --- a/st.c +++ b/st.c @@ -3,24 +3,18 @@ #include #include #include -#include #include #include #include #include #include #include -#include #include #include -#include -#include #include #include #include -#include #include -#include #include #include "st.h" @@ -467,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(); @@ -746,7 +740,6 @@ sigchld(int a) exit(0); } - void stty(char **args) { @@ -768,7 +761,7 @@ stty(char **args) } *q = '\0'; if (system(cmd) != 0) - perror("Couldn't call stty"); + perror("Couldn't call stty"); } int @@ -1700,7 +1693,6 @@ csihandle(void) tputtab(csiescseq.arg[0]); break; case 'J': /* ED -- Clear screen */ - selclear(); switch (csiescseq.arg[0]) { case 0: /* below */ tclearregion(term.c.x, term.c.y, term.col-1, term.c.y);