aboutsummaryrefslogtreecommitdiff
path: root/src/history.cc
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-09 03:41:56 +0000
committer_ov4 <ov4@ov4.org>2026-10-09 03:41:56 +0000
commitc47cfb32f4ca9ed7bbb360053d90f1fb52a95708 (patch)
tree0d186530cbccb6f14f5230da1ad145b4c98aeac0 /src/history.cc
parentd29590546054feabff2d7e559665811d1d28f538 (diff)
add line editor history
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;
+}
}