commit 84163f89d21f74d6f9c1e728bdfa05efe58a52e8
parent 1e1a6f72d40cb56cb874267efe6f4e7f59a0d3fc
Author: Claudio Alessi <smoppy@gmail.com>
Date: Sat, 24 Jun 2023 15:47:34 +0200
Also skip the reset byte in stripformats()
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/circo.c b/circo.c
@@ -1692,6 +1692,7 @@ stripformats(char *s) {
case 0x1E: /* strikethrough */
case 0x11: /* monospace */
case 0x16: /* reverse */
+ case 0x0F: /* reset */
++p;
break;
case 0x03: /* colors */
@@ -1700,9 +1701,7 @@ stripformats(char *s) {
break;
}
- *s = *p;
- ++p;
- ++s;
+ *s++ = *p++;
}
}