summaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
Diffstat (limited to 'st.c')
-rw-r--r--st.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/st.c b/st.c
index 76b7e0d..ae7fa63 100644
--- a/st.c
+++ b/st.c
@@ -1844,6 +1844,7 @@ strhandle(void)
1844{ 1844{
1845 char *p = NULL, *dec; 1845 char *p = NULL, *dec;
1846 int j, narg, par; 1846 int j, narg, par;
1847 static int winname = 0;
1847 1848
1848 term.esc &= ~(ESC_STR_END|ESC_STR); 1849 term.esc &= ~(ESC_STR_END|ESC_STR);
1849 strparse(); 1850 strparse();
@@ -1853,7 +1854,15 @@ strhandle(void)
1853 case ']': /* OSC -- Operating System Command */ 1854 case ']': /* OSC -- Operating System Command */
1854 switch (par) { 1855 switch (par) {
1855 case 0: 1856 case 0:
1857 if (narg > 1) {
1858 xsettitle(strescseq.args[1]);
1859 xseticontitle(strescseq.args[1]);
1860 }
1861 return;
1856 case 1: 1862 case 1:
1863 if (narg > 1)
1864 xseticontitle(strescseq.args[1]);
1865 return;
1857 case 2: 1866 case 2:
1858 if (narg > 1) 1867 if (narg > 1)
1859 xsettitle(strescseq.args[1]); 1868 xsettitle(strescseq.args[1]);