From 88996781bd89825501ae18a1ce6e7744e767db86 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sun, 9 Oct 2016 12:37:24 +0300 Subject: Add editor class --- main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 4e0da53..1389efd 100644 --- a/main.cpp +++ b/main.cpp @@ -1,6 +1,7 @@ #include #include #include +#include "editor.h" std::string* read_file(const std::string& filename) { std::ifstream file(filename); @@ -31,6 +32,9 @@ int main(int argc, char** argv) { return 1; } + Editor editor(contents); + editor.run_editor(); + delete contents; return 0; -- cgit v1.3