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 /include/history.h | |
| parent | d29590546054feabff2d7e559665811d1d28f538 (diff) | |
add line editor history
Diffstat (limited to 'include/history.h')
| -rw-r--r-- | include/history.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/history.h b/include/history.h index 77ab9ed..a4966e2 100644 --- a/include/history.h +++ b/include/history.h @@ -8,7 +8,11 @@ namespace ov4 inline std::vector<std::string> history_vec; +inline size_t history_index; + void add_history(const std::string &s); void clear_history(); +std::size_t get_last_index(); + } |
