mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
fixed "Press ENTER or type command to continue" to be suppressed
If in headless mode, we need to exit at this point. If we continue, we will enter the normal mode and the message "Press ENTER or type command to continue" will be displayed and we will be in the input waiting state.
This commit is contained in:
@@ -513,6 +513,14 @@ int main(int argc, char **argv)
|
||||
// Execute any "+", "-c" and "-S" arguments.
|
||||
if (params.n_commands > 0) {
|
||||
exe_commands(¶ms);
|
||||
// If in headless mode, we need to exit at this point.
|
||||
// If we continue, we will enter the normal mode and the
|
||||
// message "Press ENTER or type command to continue" will be
|
||||
// displayed and we will be in the input waiting state.
|
||||
if (headless_mode) {
|
||||
msg_putchar('\n');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
starting = 0;
|
||||
|
Reference in New Issue
Block a user