mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-06 04:06:06 -05:00
csi: kitty: remove unneeded xasserts
‘idx’ is calculated just above, and the logic is simple enough that we don’t really need to assert it.
This commit is contained in:
parent
07068165ec
commit
28ad0ca602
1 changed files with 0 additions and 2 deletions
2
csi.c
2
csi.c
|
|
@ -1557,7 +1557,6 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
grid->kitty_kbd.flags[idx] = flags;
|
||||
grid->kitty_kbd.idx = idx;
|
||||
|
||||
xassert(grid->kitty_kbd.idx < ALEN(grid->kitty_kbd.flags));
|
||||
LOG_DBG("kitty kbd: pushed new flags: 0x%03x", flags);
|
||||
break;
|
||||
}
|
||||
|
|
@ -1607,7 +1606,6 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
}
|
||||
|
||||
grid->kitty_kbd.idx = idx;
|
||||
xassert(grid->kitty_kbd.idx < ALEN(grid->kitty_kbd.flags));
|
||||
|
||||
LOG_DBG("kitty kbd: flags after pop: 0x%03x",
|
||||
term->grid->kitty_kbd.flags[idx]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue