mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-11 04:27:49 -05:00
csi: cancel selection when switching between 'normal' and 'alt' grid
This commit is contained in:
parent
7dd80b08b3
commit
84c0bb8f59
1 changed files with 3 additions and 0 deletions
3
csi.c
3
csi.c
|
|
@ -14,6 +14,7 @@
|
|||
#include "log.h"
|
||||
#include "grid.h"
|
||||
#include "vt.h"
|
||||
#include "selection.h"
|
||||
|
||||
#define min(x, y) ((x) < (y) ? (x) : (y))
|
||||
|
||||
|
|
@ -635,6 +636,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
|
||||
tll_free(term->alt.damage);
|
||||
tll_free(term->alt.scroll_damage);
|
||||
selection_cancel(term);
|
||||
|
||||
//grid_memclear(term->grid, 0, term->rows * term->cols);
|
||||
//term_damage_erase(term, 0, term->rows * term->cols);
|
||||
|
|
@ -699,6 +701,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
tll_free(term->alt.damage);
|
||||
tll_free(term->alt.scroll_damage);
|
||||
|
||||
selection_cancel(term);
|
||||
term_damage_all(term);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue