summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Src/Modules/hlgroup.c11
2 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index f6b41f94a..d826e6c8b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2025-01-27 Oliver Kiddle <opk@zsh.org>
+ * 53329: Src/Modules/hlgroup.c: adapt .zle.sgr for CSI sequences
+ that use : instead of ;
+
* github #128: GI <gi1242+zsh@gmail.com>:
Completion/Unix/Command/_vim: Updated completion for neovim
diff --git a/Src/Modules/hlgroup.c b/Src/Modules/hlgroup.c
index 082762623..6c5a4bec4 100644
--- a/Src/Modules/hlgroup.c
+++ b/Src/Modules/hlgroup.c
@@ -50,9 +50,14 @@ convertattr(char *attrstr, int sgr)
char *c = s, *t = s - 1;
while (c[0] == '\033' && c[1] == '[') {
- c += 2;
- while (isdigit(*c) || *c == ';')
- *++t = *c++;
+ for (c += 2; ; c++) {
+ if (isdigit(*c))
+ *++t = *c;
+ else if (*c == ';' || *c == ':')
+ *++t = ';';
+ else
+ break;
+ }
t++;
if (*c != 'm')
break;