X-Git-Url: https://git.xinqibao.xyz/st.git/blobdiff_plain/684c72d05e54780c283c6580f271fb6920c3060d..62756fdb4945a80f4a53e6d354d5d93f51035517:/st.c?ds=inline diff --git a/st.c b/st.c index c07cc3b..b604f0e 100644 --- a/st.c +++ b/st.c @@ -1329,9 +1329,8 @@ execsh(void) die("who are you?\n"); } - if (!(sh = getenv("SHELL"))) { + if ((sh = getenv("SHELL")) == NULL) sh = (pw->pw_shell[0]) ? pw->pw_shell : shell; - } if (opt_cmd) prog = opt_cmd[0]; @@ -4160,9 +4159,9 @@ run(void) do { XNextEvent(xw.dpy, &ev); /* - * XFilterEvent is required to be called after you using XOpenIM, - * this is not unnecessary.It does not only filter the key event, - * but some clientmessage for input method as well. + * This XFilterEvent call is required because of XOpenIM. It + * does filter out the key event and some client message for + * the input method too. */ if (XFilterEvent(&ev, None)) continue;