feat(remote): add basic --remote support

This is starting from @geekodour's work at
https://github.com/neovim/neovim/pull/8326
This commit is contained in:
Charlie Groves
2022-02-16 17:11:50 -05:00
parent 76769b8a1f
commit 5862176764
4 changed files with 154 additions and 1 deletions

View File

@@ -1997,7 +1997,7 @@ Array nvim_get_proc_children(Integer pid, Error *err)
DLOG("fallback to vim._os_proc_children()");
Array a = ARRAY_DICT_INIT;
ADD(a, INTEGER_OBJ(pid));
String s = cstr_to_string("return vim._os_proc_children(select(1, ...))");
String s = cstr_to_string("return vim._os_proc_children(select(...))");
Object o = nlua_exec(s, a, err);
api_free_string(s);
api_free_array(a);