From bd8d43c6fef868ad5ed50a79deb0f7adc1f5e53a Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Wed, 18 Jul 2018 13:31:23 +0200 Subject: 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) --- test/functional/helpers.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/functional/helpers.lua') diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 72e71a2cf2..8823a6e003 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -362,6 +362,8 @@ local function clear(...) table.insert(args, arg) end set_session(spawn(args, nil, env)) + -- Dummy request so that --embed continues past UI initialization + session:request('nvim_eval', "0") end local function insert(...) -- cgit