commit da9835bdf0f8251cbf303a0513934775db11d6ce
parent a8e2af0d923e7b6f7b19e8fa516bcd0670dfae84
Author: Bakkeby <bakkeby@gmail.com>
Date: Fri, 7 Apr 2023 14:25:12 +0200
Bump to 7e8050c.
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'
Ref.
https://git.suckless.org/st/commit/7e8050cc621f27002eaf1be8114dee2497beff91.html
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/st.c b/st.c
@@ -2602,8 +2602,10 @@ strhandle(void)
if (p && !strcmp(p, "?"))
osc4_color_response(j);
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 {