From 84c0bb8f598d1286f22c7efa0760c1474daa23a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 11 Jul 2019 10:00:59 +0200 Subject: [PATCH] csi: cancel selection when switching between 'normal' and 'alt' grid --- csi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/csi.c b/csi.c index 51f7705d..d6c04376 100644 --- a/csi.c +++ b/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;