diff options
author | Jesse Luehrs <doy@tozt.net> | 2016-05-06 02:36:08 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2016-05-06 02:36:08 -0400 |
commit | b1ae3f18ef5515433fa64ee00cbd269090b3bfc4 (patch) | |
tree | 3e138be0ea70b362da49c255584dd1d1bda56bff | |
parent | f9d71c637256b693444d21e0ee6760b183102abc (diff) | |
download | runes-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)
-rw-r--r-- | src/display.c | 4 |
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) { |