summaryrefslogtreecommitdiff
path: root/gui/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'gui/gui.c')
-rw-r--r--gui/gui.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/gui.c b/gui/gui.c
index c5d51a2..19d5eb9 100644
--- a/gui/gui.c
+++ b/gui/gui.c
@@ -74,6 +74,15 @@ struct gui_sheet *find_corresponding_sheet(struct gui_sheet *pick_from,
}
+struct gui_sheet *current_sheet(const struct gui *gui)
+{
+ if (!gui->old_hist || gui->diff_mode != diff_old)
+ return gui->curr_sheet;
+ return find_corresponding_sheet(gui->old_hist->sheets,
+ gui->new_hist->sheets, gui->curr_sheet);
+}
+
+
/* ----- AoIs -------------------------------------------------------------- */