Upstream update 7e8050cc621f27002eaf1be8114dee2497beff91
Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun Feb 5 13:29:35 2023 +0100 Fixed OSC color reset without parameter->resets all colors Adapted from (garbled) patch by wim <wim@thinkerwim.org> Additional notes: it should reset all the colors using xloadcols(). To reproduce: set a different (theme) color using some escape code, then reset it: printf '\x1b]104\x07'
This commit is contained in:
parent
8b8a6d23b4
commit
f7ebd22960
4
st/st.c
4
st/st.c
|
@ -2298,8 +2298,10 @@ strhandle(void)
|
|||
if (p && !strcmp(p, "?")) {
|
||||
osc_color_response(j, 0, 1);
|
||||
} else if (xsetcolorname(j, p)) {
|
||||
if (par == 104 && narg <= 1)
|
||||
if (par == 104 && narg <= 1) {
|
||||
xloadcols();
|
||||
return; /* color reset without parameter */
|
||||
}
|
||||
fprintf(stderr, "erresc: invalid color j=%d, p=%s\n",
|
||||
j, p ? p : "(null)");
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue