From 8ce06103b5c5848b48dd31e21b6efd3eefed03d7 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sun, 9 Oct 2016 13:28:54 +0300 Subject: Add line editing --- editor.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'editor.h') diff --git a/editor.h b/editor.h index 43cfe77..509141f 100644 --- a/editor.h +++ b/editor.h @@ -9,10 +9,14 @@ class Editor { Editor(std::vector* contents); int run_editor(); private: + const static int OUTPUT_LINE_MAX = 10; + std::vector* m_contents; int m_current_line; int print_contents_on_line(int line) const; + int edit_command(); + int edit_line(int line); }; #endif -- cgit v1.3