summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-11-28 14:46:09 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-11-28 14:46:09 (GMT)
commitdc380979aedfa3a37ce184578fa9e9312909970a (patch)
treea068f97a33accfb320b5070e205966befc1e8977 /gui
parentfc47747c702c1e7cfb071f44b3a6b90bb54521b7 (diff)
downloadeeshow-dc380979aedfa3a37ce184578fa9e9312909970a.zip
eeshow-dc380979aedfa3a37ce184578fa9e9312909970a.tar.gz
eeshow-dc380979aedfa3a37ce184578fa9e9312909970a.tar.bz2
gui/sheet.c (have_history): make check if we have a VCS history reusable
Diffstat (limited to 'gui')
-rw-r--r--gui/sheet.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gui/sheet.c b/gui/sheet.c
index 6131163..138610d 100644
--- a/gui/sheet.c
+++ b/gui/sheet.c
@@ -57,6 +57,12 @@ static void canvas_coord(const struct gui *gui,
}
+static bool have_history(const struct gui *gui)
+{
+ return gui->vcs_history && !vcs_is_empty(gui->vcs_history);
+}
+
+
/* ----- Zoom -------------------------------------------------------------- */
@@ -372,7 +378,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_history && !vcs_is_empty(gui->vcs_history))
+ if (have_history(gui))
do_revision_overlays(gui);
do_sheet_overlays(gui);
zoom_to_extents(gui);