diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2025-08-29 11:21:42 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-08-29 11:21:42 +0000 |
| commit | 1055d32e9f6de10053783d5362ae5bfcbaf996fe (patch) | |
| tree | e12f3698816c3adf44d86a5ea7f1880987469f33 /csi.c | |
| parent | render: fix hollow cursor style for "extra" cursors (diff) | |
term_remove_all_multi_cursors(): early return if no extra cursors are active
Diffstat (limited to 'csi.c')
| -rw-r--r-- | csi.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -988,15 +988,13 @@ csi_dispatch(struct terminal *term, uint8_t final) /* Erase entire screen */ term_erase(term, 0, 0, term->rows - 1, term->cols - 1); term->grid->cursor.lcf = false; - if (unlikely(term->multi_cursor.shapes != NULL)) - term_remove_all_multi_cursors(term); + term_remove_all_multi_cursors(term); break; case 3: { /* Erase scrollback */ term_erase_scrollback(term); - if (unlikely(term->multi_cursor.shapes != NULL)) - term_remove_all_multi_cursors(term); + term_remove_all_multi_cursors(term); break; } |
