mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
api: change nvim_command_output behavior
Implement nvim_command_output with `execute({cmd},"silent")`. Behavior changes: - does not provoke any hit-enter prompt - no longer prepends a newline char - does not capture some noise (like the "[New File]" message, see the change to tabnewentered_spec.lua) Technically ("bug-for-bug") this a breaking change. But the previous behavior of nvim_command_output meant that it probably wasn't used for anything outside of tests. Also remove the undocumented `v:command_output` variable which was a hack introduced only for the purposes of nvim_command_output. closes #7726
This commit is contained in:
@@ -402,7 +402,6 @@ static struct vimvar {
|
||||
VV(VV_OLDFILES, "oldfiles", VAR_LIST, 0),
|
||||
VV(VV_WINDOWID, "windowid", VAR_NUMBER, VV_RO_SBX),
|
||||
VV(VV_PROGPATH, "progpath", VAR_STRING, VV_RO),
|
||||
VV(VV_COMMAND_OUTPUT, "command_output", VAR_STRING, 0),
|
||||
VV(VV_COMPLETED_ITEM, "completed_item", VAR_DICT, VV_RO),
|
||||
VV(VV_OPTION_NEW, "option_new", VAR_STRING, VV_RO),
|
||||
VV(VV_OPTION_OLD, "option_old", VAR_STRING, VV_RO),
|
||||
|
Reference in New Issue
Block a user