aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--st.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/st.c b/st.c
index f342e5c..48d65ca 100644
--- a/st.c
+++ b/st.c
@@ -1865,7 +1865,10 @@ strhandle(void)
1865 case 104: /* color reset, here p = NULL */ 1865 case 104: /* color reset, here p = NULL */
1866 j = (narg > 1) ? atoi(strescseq.args[1]) : -1; 1866 j = (narg > 1) ? atoi(strescseq.args[1]) : -1;
1867 if (xsetcolorname(j, p)) { 1867 if (xsetcolorname(j, p)) {
1868 fprintf(stderr, "erresc: invalid color %s\n", p); 1868 if (par == 104 && narg <= 1)
1869 return; /* color reset without parameter */
1870 fprintf(stderr, "erresc: invalid color j=%d, p=%s\n",
1871 j, p ? p : "(null)");
1869 } else { 1872 } else {
1870 /* 1873 /*
1871 * TODO if defaultbg color is changed, borders 1874 * TODO if defaultbg color is changed, borders