aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorJan Tuomi <jan-sebastian.tuomi@aalto.fi>2016-10-09 12:37:24 +0300
committerJan Tuomi <jan-sebastian.tuomi@aalto.fi>2016-10-09 14:50:24 +0300
commit88996781bd89825501ae18a1ce6e7744e767db86 (patch)
tree93807aa846be32728c6bb2c553971a669370a5cf /main.cpp
parent3461d6dfc348b1814376669518f2dcbb114ab9c8 (diff)
Add editor class
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 4e0da53..1389efd 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1,6 +1,7 @@
#include <iostream>
#include <fstream>
#include <string>
+#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;