summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-26 10:33:21 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-26 10:33:21 -0300
commita7c32bb7b4a447a9b94481c283de211c07ccc9a9 (patch)
tree7a8cd0b25b8694f8b9a6b523f8f134f58db13ecc
parent7680a153e8ec3993774f025d3209c3d750ed098c (diff)
downloadeeshow-a7c32bb7b4a447a9b94481c283de211c07ccc9a9.tar.gz
eeshow-a7c32bb7b4a447a9b94481c283de211c07ccc9a9.tar.bz2
eeshow-a7c32bb7b4a447a9b94481c283de211c07ccc9a9.zip
gui/sheet.c (sheet_key): N/D/O need to do_revision_overlays to update overlays
Else, the frame remains in its prior state, not indicating the mode change.
-rw-r--r--gui/sheet.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/sheet.c b/gui/sheet.c
index aea2e27..f39bbd8 100644
--- a/gui/sheet.c
+++ b/gui/sheet.c
@@ -562,14 +562,17 @@ static void sheet_key(void *user, int x, int y, int keyval)
case GDK_KEY_n:
gui->diff_mode = diff_new;
+ do_revision_overlays(gui);
redraw(gui);
break;
case GDK_KEY_o:
gui->diff_mode = diff_old;
+ do_revision_overlays(gui);
redraw(gui);
break;
case GDK_KEY_d:
gui->diff_mode = diff_delta;
+ do_revision_overlays(gui);
redraw(gui);
break;
case GDK_KEY_D: /* Shift + D */