Xinqi Bao's Git

remove unused variable from previous patch
[st.git] / st.c
diff --git a/st.c b/st.c
index 76b7e0d..abbbe4b 100644 (file)
--- a/st.c
+++ b/st.c
@@ -1853,7 +1853,15 @@ strhandle(void)
        case ']': /* OSC -- Operating System Command */
                switch (par) {
                case 0:
+                       if (narg > 1) {
+                               xsettitle(strescseq.args[1]);
+                               xseticontitle(strescseq.args[1]);
+                       }
+                       return;
                case 1:
+                       if (narg > 1)
+                               xseticontitle(strescseq.args[1]);
+                       return;
                case 2:
                        if (narg > 1)
                                xsettitle(strescseq.args[1]);