From 7c9146efca9b565777e1093e65272f710ae5d0d9 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sun, 9 Oct 2016 12:56:59 +0300 Subject: Add editor content outputting --- editor.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'editor.h') diff --git a/editor.h b/editor.h index 491c3fb..43cfe77 100644 --- a/editor.h +++ b/editor.h @@ -2,13 +2,17 @@ #define EDITOR_H #include #include +#include class Editor { public: - Editor(std::string* contents); + Editor(std::vector* contents); int run_editor(); private: - std::string* m_contents; + std::vector* m_contents; + int m_current_line; + + int print_contents_on_line(int line) const; }; #endif -- cgit v1.3