csi: cancel selection when switching between 'normal' and 'alt' grid

This commit is contained in:
Daniel Eklöf 2019-07-11 10:00:59 +02:00
parent 7dd80b08b3
commit 84c0bb8f59
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

3
csi.c
View file

@ -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;