mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-06-30 13:14:56 -04:00
parent
e24ad0a793
commit
671483674e
1 changed files with 2 additions and 0 deletions
2
csi.c
2
csi.c
|
|
@ -2146,6 +2146,8 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
if (slot == 0)
|
||||
slot = term->color_stack.idx + 1;
|
||||
|
||||
slot = min(slot, 128);
|
||||
|
||||
if (term->color_stack.size < slot) {
|
||||
const size_t new_size = slot;
|
||||
term->color_stack.stack = xrealloc(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue