From d37be2282dfb830dfc44fca6faeb16c50235fdda Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Thu, 9 Jan 2025 13:17:03 +0700 Subject: [PATCH] updated tte.c --- tte.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)");