summaryrefslogtreecommitdiff
path: root/gui/sheet.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-27 14:31:09 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-27 14:31:09 -0300
commit51a4e4d928c2ab9563e3ab62a68d20a9f5de7b5c (patch)
tree89302eb49f2b32b8a9b0d1eeedfb28f871d42bb8 /gui/sheet.c
parentb50be73df03140fd263119d39545b58d6954b561 (diff)
downloadeeshow-51a4e4d928c2ab9563e3ab62a68d20a9f5de7b5c.tar.gz
eeshow-51a4e4d928c2ab9563e3ab62a68d20a9f5de7b5c.tar.bz2
eeshow-51a4e4d928c2ab9563e3ab62a68d20a9f5de7b5c.zip
file/git-hist.c: introduce history descriptor to API, removing global "history"
This will be used for more things in the future.
Diffstat (limited to 'gui/sheet.c')
-rw-r--r--gui/sheet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/sheet.c b/gui/sheet.c
index f39bbd8..b1cb67c 100644
--- a/gui/sheet.c
+++ b/gui/sheet.c
@@ -364,7 +364,7 @@ void go_to_sheet(struct gui *gui, struct gui_sheet *sheet)
gui->curr_sheet = sheet;
if (gui->old_hist)
render_delta(gui);
- if (gui->vcs_hist)
+ if (gui->vcs_history && vcs_head(gui->vcs_history))
do_revision_overlays(gui);
do_sheet_overlays(gui);
zoom_to_extents(gui);