aboutsummaryrefslogtreecommitdiffstats
path: root/editor.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h8
1 files changed, 6 insertions, 2 deletions
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 <string>
#include <iostream>
+#include <vector>
class Editor {
public:
- Editor(std::string* contents);
+ Editor(std::vector<std::string>* contents);
int run_editor();
private:
- std::string* m_contents;
+ std::vector<std::string>* m_contents;
+ int m_current_line;
+
+ int print_contents_on_line(int line) const;
};
#endif