diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-09-12 03:04:33 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2025-01-03 19:24:04 +0100 |
commit | a1ba655dee0f89230ea09712e4df981cc3b15bea (patch) | |
tree | 190940a08a1886cd3eab005ed409f56897f1201f /src/nvim/main.c | |
parent | fe87656f29e933b63f5d4dd03b3c0be3ed4ecf5f (diff) | |
download | rneovim-a1ba655dee0f89230ea09712e4df981cc3b15bea.tar.gz rneovim-a1ba655dee0f89230ea09712e4df981cc3b15bea.tar.bz2 rneovim-a1ba655dee0f89230ea09712e4df981cc3b15bea.zip |
test: spawn_wait() starts a non-RPC Nvim process
Problem:
Can't use `n.clear()` to test non-RPC `nvim` invocations. So tests end
up creating ad-hoc wrappers around `system()` or `jobstart()`.
Solution:
- Introduce `n.spawn_wait()`
- TODO (followup PR): Rename `n.spawn()` and `n.spawn_wait()`.
It's misleading that `n.spawn()` returns a RPC session...
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r-- | src/nvim/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c index 348f246d27..2b55a48c12 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -634,6 +634,7 @@ int main(int argc, char **argv) if (params.luaf != NULL) { // Like "--cmd", "+", "-c" and "-S", don't truncate messages. msg_scroll = true; + DLOG("executing Lua -l script"); bool lua_ok = nlua_exec_file(params.luaf); TIME_MSG("executing Lua -l script"); if (msg_didout) { |