diff --git a/tte.c b/tte.c index 986300e..e69716e 100644 --- a/tte.c +++ b/tte.c @@ -2082,7 +2082,6 @@ void initEditor() { ec.syntax = NULL; ec.actions = actionListInit(); - editorUpdateWindowSize(); // The SIGWINCH signal is sent to a process when its controlling // terminal changes its size (a window change). signal(SIGWINCH, editorHandleSigwinch); @@ -2155,6 +2154,7 @@ int main(int argc, char* argv[]) { editorOpen(argv[argc - 1]); else if (arg_response == -1) return 0; + editorUpdateWindowSize(); enableRawMode(); editorSetStatusMessage(" Ctrl-Q to quit | Ctrl-S to save | (tte -h | --help for more info)");