1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-06 07:36:20 +02:00

52724: fix .zle.sgr for empty sequences

This commit is contained in:
Oliver Kiddle 2024-03-13 00:35:10 +01:00
parent ea5a5d6ec4
commit 37f434498e
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2024-03-13 Oliver Kiddle <opk@zsh.org>
* 52724: Src/Modules/hlgroup.c: fix .zle.sgr for empty sequences
2024-03-09 Bart Schaefer <schaefer@zsh.org>
* 52725: Src/Modules/ksh93.c: updated named reference semantics

View File

@ -59,6 +59,10 @@ convertattr(char *attrstr, int sgr)
*t = ';';
c++;
}
if (t <= s) { /* always return at least "0" */
*s = '0';
t = s + 1;
}
*t = '\0';
len = t - s;
}