mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 22:38:16 +00:00
shell/logging: Fix E730 with verbose system({List}) #9009
ref https://github.com/neovim/neovim/issues/9001#issuecomment-421843790 Steps to reproduce: :set verbose=9 :call system(['echo']) E730: using List as a String
This commit is contained in:
@@ -16471,13 +16471,12 @@ static void get_system_output_as_rettv(typval_T *argvars, typval_T *rettv,
|
||||
}
|
||||
|
||||
if (p_verbose > 3) {
|
||||
char buf[NUMBUFLEN];
|
||||
const char * cmd = tv_get_string_buf(argvars, buf);
|
||||
|
||||
char *cmdstr = shell_argv_to_str(argv);
|
||||
verbose_enter_scroll();
|
||||
smsg(_("Calling shell to execute: \"%s\""), cmd);
|
||||
smsg(_("Executing command: \"%s\""), cmdstr);
|
||||
msg_puts("\n\n");
|
||||
verbose_leave_scroll();
|
||||
xfree(cmdstr);
|
||||
}
|
||||
|
||||
if (do_profiling == PROF_YES) {
|
||||
|
Reference in New Issue
Block a user