diff options
| -rw-r--r-- | st.c | 7 |
1 files changed, 3 insertions, 4 deletions
| @@ -2268,8 +2268,7 @@ strhandle(void) { | |||
| 2268 | 2268 | ||
| 2269 | term.esc &= ~(ESC_STR_END|ESC_STR); | 2269 | term.esc &= ~(ESC_STR_END|ESC_STR); |
| 2270 | strparse(); | 2270 | strparse(); |
| 2271 | narg = strescseq.narg; | 2271 | par = (narg = strescseq.narg) ? atoi(strescseq.args[0]) : 0; |
| 2272 | par = atoi(strescseq.args[0]); | ||
| 2273 | 2272 | ||
| 2274 | switch(strescseq.type) { | 2273 | switch(strescseq.type) { |
| 2275 | case ']': /* OSC -- Operating System Command */ | 2274 | case ']': /* OSC -- Operating System Command */ |
| @@ -2927,7 +2926,7 @@ xloadcols(void) { | |||
| 2927 | Color *cp; | 2926 | Color *cp; |
| 2928 | 2927 | ||
| 2929 | if(loaded) { | 2928 | if(loaded) { |
| 2930 | for (cp = dc.col; cp < dc.col + LEN(dc.col); ++cp) | 2929 | for (cp = dc.col; cp < &dc.col[LEN(dc.col)]; ++cp) |
| 2931 | XftColorFree(xw.dpy, xw.vis, xw.cmap, cp); | 2930 | XftColorFree(xw.dpy, xw.vis, xw.cmap, cp); |
| 2932 | } | 2931 | } |
| 2933 | 2932 | ||
| @@ -4066,7 +4065,7 @@ run: | |||
| 4066 | if(argc > 0) { | 4065 | if(argc > 0) { |
| 4067 | /* eat all remaining arguments */ | 4066 | /* eat all remaining arguments */ |
| 4068 | opt_cmd = argv; | 4067 | opt_cmd = argv; |
| 4069 | if(!opt_title) | 4068 | if(!opt_title && !opt_line) |
| 4070 | opt_title = basename(xstrdup(argv[0])); | 4069 | opt_title = basename(xstrdup(argv[0])); |
| 4071 | } | 4070 | } |
| 4072 | setlocale(LC_CTYPE, ""); | 4071 | setlocale(LC_CTYPE, ""); |
