From b1ae3f18ef5515433fa64ee00cbd269090b3bfc4 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 6 May 2016 02:36:08 -0400 Subject: clear the selection if we update the screen would be nice to only clear it if we update the selected part of the screen, but that's hard currently (we don't know what parts of the screen are updated at any point since we just redraw everything every time anything changes) --- src/display.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/display.c b/src/display.c index 02a0689..eda9363 100644 --- a/src/display.c +++ b/src/display.c @@ -94,6 +94,10 @@ void runes_display_draw_screen(RunesTerm *t) return; } + if (t->scr.dirty) { + display->has_selection = 0; + } + /* XXX quite inefficient */ rows = t->scr.grid->max.row; for (r = 0; r < rows; ++r) { -- cgit v1.2.3-54-g00ecf