mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 08:18:17 +00:00
feat(ui): invoke ui client handlers
This commit is contained in:
@@ -112,7 +112,6 @@ static const char *err_too_many_args = N_("Too many edit arguments");
|
||||
static const char *err_extra_cmd =
|
||||
N_("Too many \"+command\", \"-c command\" or \"--cmd command\" arguments");
|
||||
|
||||
|
||||
void event_init(void)
|
||||
{
|
||||
loop_init(&main_loop, NULL);
|
||||
@@ -344,6 +343,12 @@ int main(int argc, char **argv)
|
||||
TIME_MSG("init screen for UI");
|
||||
}
|
||||
|
||||
if (ui_client_channel_id) {
|
||||
ui_client_init(ui_client_channel_id);
|
||||
ui_client_execute(ui_client_channel_id);
|
||||
abort(); // unreachable
|
||||
}
|
||||
|
||||
init_default_mappings(); // Default mappings.
|
||||
TIME_MSG("init default mappings");
|
||||
|
||||
@@ -840,9 +845,8 @@ static void remote_request(mparm_T *params, int remote_args,
|
||||
exit(1);
|
||||
}
|
||||
|
||||
ui_client_init(chan);
|
||||
ui_client_execute(chan);
|
||||
abort(); // unreachable
|
||||
ui_client_channel_id = chan;
|
||||
return;
|
||||
}
|
||||
|
||||
Array args = ARRAY_DICT_INIT;
|
||||
|
Reference in New Issue
Block a user