mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-05-21 12:01:54 +02:00
52724: fix .zle.sgr for empty sequences
This commit is contained in:
parent
ea5a5d6ec4
commit
37f434498e
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue