From 0263aadac4cbadf433eb6e70ab239af4bbd8d3af Mon Sep 17 00:00:00 2001 From: henrypp Date: Sun, 6 Feb 2022 04:45:59 +0600 Subject: [PATCH] restore editor window position when open --- src/editor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor.c b/src/editor.c index 64dd3e47..369963de 100644 --- a/src/editor.c +++ b/src/editor.c @@ -1617,10 +1617,10 @@ INT_PTR CALLBACK EditorProc ( // initialize layout _r_layout_initializemanager (&context->layout_manager, hwnd); - _r_window_restoreposition (hwnd, L"editor"); - _r_wnd_center (hwnd, GetParent (hwnd)); + _r_window_restoreposition (hwnd, L"editor"); + // set window title SetWindowText (hwnd, title);