From afef973262bea3fe1563dc0571bb4168ac0914aa Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 19 Jul 2019 21:32:04 +0200 Subject: doc [ci skip] #10383 - test/README.md: document luassert `TableFormatLevel` - CONTRIBUTING.md: absorb parts of the old "Development tips" wiki page --- src/nvim/eval.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/nvim') diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 2dc6a287a1..aa79d4ce5f 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -12076,6 +12076,14 @@ static void f_jobresize(typval_T *argvars, typval_T *rettv, FunPtr fptr) rettv->vval.v_number = 1; } +/// Builds a process argument vector from a VimL object (typval_T). +/// +/// @param[in] cmd_tv VimL object +/// @param[out] cmd Returns the command or executable name. +/// @param[out] executable Returns `false` if argv[0] is not executable. +/// +/// @returns Result of `shell_build_argv()` if `cmd_tv` is a String. +/// Else, string values of `cmd_tv` copied to a (char **) list. static char **tv_to_argv(typval_T *cmd_tv, const char **cmd, bool *executable) { if (cmd_tv->v_type == VAR_STRING) { -- cgit