neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit ca432069eb6f5453acab896acdb8e0363c232629
parent ab1c2220f0c7f63e2081eb22544fed9fc4b4c611
Author: bfredl <bjorn.linse@gmail.com>
Date:   Mon, 29 Apr 2024 13:40:44 +0200

Merge pull request #28563 from bfredl/ui_attach_point

perf(ui_client): skip some initialization not necessary for ui client
Diffstat:
Msrc/nvim/main.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/nvim/main.c b/src/nvim/main.c @@ -355,6 +355,12 @@ int main(int argc, char **argv) ui_client_channel_id = rv; } + if (ui_client_channel_id) { + time_finish(); + ui_client_run(remote_ui); // NORETURN + } + assert(!ui_client_channel_id && !use_builtin_ui); + TIME_MSG("expanding arguments"); if (params.diff_mode && params.window_count == -1) { @@ -397,12 +403,6 @@ int main(int argc, char **argv) input_start(); } - if (ui_client_channel_id) { - time_finish(); - ui_client_run(remote_ui); // NORETURN - } - assert(!ui_client_channel_id && !use_builtin_ui); - // Wait for UIs to set up Nvim or show early messages // and prompts (--cmd, swapfile dialog, …). bool use_remote_ui = (embedded_mode && !headless_mode);