mirror of
https://github.com/neovim/neovim.git
synced 2025-11-27 04:30:41 +00:00
main.c: fixes #7967
This commit is contained in:
@@ -378,6 +378,14 @@ int main(int argc, char **argv)
|
|||||||
TIME_MSG("initialized screen early for embedder");
|
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.
|
// Execute --cmd arguments.
|
||||||
exe_pre_commands(¶ms);
|
exe_pre_commands(¶ms);
|
||||||
|
|
||||||
@@ -477,11 +485,6 @@ int main(int argc, char **argv)
|
|||||||
wait_return(true);
|
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
|
setmouse(); // may start using the mouse
|
||||||
|
|
||||||
if (exmode_active || early_ui) {
|
if (exmode_active || early_ui) {
|
||||||
|
|||||||
Reference in New Issue
Block a user