startup: wait for embedder before executing startup commands and files

Give embeders a chance to set up nvim, by processing a request before
startup. This allows an external UI to show messages and prompts from
--cmd and buffer loading (e.g. swap files)
This commit is contained in:
Björn Linse
2018-07-18 13:31:23 +02:00
parent 32ad52ae04
commit bd8d43c6fe
7 changed files with 134 additions and 5 deletions

View File

@@ -6332,7 +6332,6 @@ int load_colors(char_u *name)
apply_autocmds(EVENT_COLORSCHEME, name, curbuf->b_fname, FALSE, curbuf);
recursive = false;
ui_refresh();
return retval;
}
@@ -6885,7 +6884,7 @@ void do_highlight(const char *line, const bool forceit, const bool init)
// "fg", which have been changed now.
highlight_attr_set_all();
if (!ui_is_external(kUINewgrid)) {
if (!ui_is_external(kUINewgrid) && starting != NO_SCREEN) {
// Older UIs assume that we clear the screen after normal group is
// changed
ui_refresh();