mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 15:21:47 +00:00
api: nvim_command_output: direct impl
This commit is contained in:
@@ -8116,8 +8116,7 @@ static void f_execute(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
|
||||
ga_append(capture_ga, NUL);
|
||||
rettv->v_type = VAR_STRING;
|
||||
rettv->vval.v_string = vim_strsave(capture_ga->ga_data);
|
||||
ga_clear(capture_ga);
|
||||
rettv->vval.v_string = capture_ga->ga_data;
|
||||
|
||||
capture_ga = save_capture_ga;
|
||||
}
|
||||
|
Reference in New Issue
Block a user