diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-09 03:41:56 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-09 03:41:56 +0000 |
| commit | c47cfb32f4ca9ed7bbb360053d90f1fb52a95708 (patch) | |
| tree | 0d186530cbccb6f14f5230da1ad145b4c98aeac0 /src/history.cc | |
| parent | d29590546054feabff2d7e559665811d1d28f538 (diff) | |
add line editor history
Diffstat (limited to 'src/history.cc')
| -rw-r--r-- | src/history.cc | 5 |
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; +} } |
