diff --git a/src/text_editor/text_editor.cpp b/src/text_editor/text_editor.cpp index 4d70e95..69a23a8 100644 --- a/src/text_editor/text_editor.cpp +++ b/src/text_editor/text_editor.cpp @@ -885,20 +885,7 @@ int main(int argc, char **argv) } for (int i = 1; i < argc; i += 1) { - String it = argv[i]; - - if (it == "--testing") { - Testing = true; - } else if (IsDir(it)) { - WorkDir = GetAbsolutePath(Perm, it); - OpenCode(WorkDir); - } else { - if (!FileExists(it)) { - continue; - } - Window *window = GetWindow({0}); - WindowOpenBufferView(window, it); - } + Open(argv[i]); } {