mirror of
https://github.com/neovim/neovim.git
synced 2025-11-27 04:30:41 +00:00
startup: fail if --embed with -es/-Es #10753
Closes https://github.com/neovim/neovim/issues/10031
This commit is contained in:
committed by
Justin M. Keyes
parent
3afb397407
commit
77594d55f7
@@ -1223,6 +1223,10 @@ scripterror:
|
||||
}
|
||||
}
|
||||
|
||||
if (embedded_mode && silent_mode) {
|
||||
mainerr(_("--embed conflicts with -es/-Es"), NULL);
|
||||
}
|
||||
|
||||
// If there is a "+123" or "-c" command, set v:swapcommand to the first one.
|
||||
if (parmp->n_commands > 0) {
|
||||
const size_t swcmd_len = STRLEN(parmp->commands[0]) + 3;
|
||||
|
||||
Reference in New Issue
Block a user