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 /terminal.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 'terminal.c')
| -rw-r--r-- | terminal.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -2117,6 +2117,13 @@ term_theme_apply(struct terminal *term, const struct color_theme *theme) void term_remove_all_multi_cursors(struct terminal *term) { + if (term->multi_cursor.shapes == NULL) { +#if defined(_DEBUG) + xassert(pixman_region32_empty(&term->multi_cursor.active)); +#endif + return; + } + pixman_region32_fini(&term->multi_cursor.active); pixman_region32_init(&term->multi_cursor.active); free(term->multi_cursor.shapes); |
