]> git.armaanb.net Git - st.git/commitdiff
Fix the new -e handling. An empty cmd has to work for backwards compatibility.
authorChristoph Lohmann <20h@r-36.net>
Sun, 10 May 2015 13:19:48 +0000 (15:19 +0200)
committerChristoph Lohmann <20h@r-36.net>
Sun, 10 May 2015 13:19:48 +0000 (15:19 +0200)
st.c

diff --git a/st.c b/st.c
index c2da66bf7610fa0d6b1b3f57a7e9d1cf901c1bcb..55a5c56eefc1feab52f7806bf1666564e19c1e45 100644 (file)
--- a/st.c
+++ b/st.c
@@ -4010,7 +4010,7 @@ main(int argc, char *argv[]) {
                opt_class = EARGF(usage());
                break;
        case 'e':
-               if(argc > 1)
+               if(argc > 0)
                        --argc, ++argv;
                goto run;
        case 'f':