aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/main.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c
index ed8788af60..ef424e08a8 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -378,6 +378,14 @@ int main(int argc, char **argv)
TIME_MSG("initialized screen early for embedder");
}
+ if (!headless_mode && !embedded_mode && !silent_mode) {
+ input_stop(); // Stop reading input, let the UI take over.
+ ui_builtin_start();
+ starting = NO_BUFFERS;
+ screenclear();
+ early_ui = true;
+ }
+
// Execute --cmd arguments.
exe_pre_commands(&params);
@@ -477,11 +485,6 @@ int main(int argc, char **argv)
wait_return(true);
}
- if (!headless_mode && !embedded_mode && !silent_mode) {
- input_stop(); // Stop reading input, let the UI take over.
- ui_builtin_start();
- }
-
setmouse(); // may start using the mouse
if (exmode_active || early_ui) {