aboutsummaryrefslogtreecommitdiff
path: root/src/history.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/history.cc')
-rw-r--r--src/history.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/history.cc b/src/history.cc
index 79f0ee2..3e976ce 100644
--- a/src/history.cc
+++ b/src/history.cc
@@ -14,5 +14,10 @@ void clear_history()
{
history_vec.clear();
}
+
+size_t get_last_index()
+{
+ return history_vec.size() - 1;
+}
}