diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-11-21 14:05:00 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-11-28 14:14:55 +0000 |
| commit | 28ad0ca60295fadc42ac75f6a1237d12fff371ac (patch) | |
| tree | d2c49bfdb4c937fa19882ec968093581a0915fe7 /csi.c | |
| parent | input: only report modifiers when “Report all keys as escape codes” is enabled (diff) | |
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.
Diffstat (limited to 'csi.c')
| -rw-r--r-- | csi.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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]); |
