aboutsummaryrefslogtreecommitdiffstats
path: root/src/display.c
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-05-06 02:36:08 -0400
committerJesse Luehrs <doy@tozt.net>2016-05-06 02:36:08 -0400
commitb1ae3f18ef5515433fa64ee00cbd269090b3bfc4 (patch)
tree3e138be0ea70b362da49c255584dd1d1bda56bff /src/display.c
parentf9d71c637256b693444d21e0ee6760b183102abc (diff)
downloadrunes-b1ae3f18ef5515433fa64ee00cbd269090b3bfc4.tar.gz
runes-b1ae3f18ef5515433fa64ee00cbd269090b3bfc4.zip
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)
Diffstat (limited to 'src/display.c')
-rw-r--r--src/display.c4
1 files changed, 4 insertions, 0 deletions
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) {