diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-01-05 11:17:21 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-01-10 23:45:44 +0100 |
commit | c095f83116eb8ef87983ca5fea61053755fbc4e5 (patch) | |
tree | 82be0f4aa1a50be3703a91236d1913462fd6a28a /test/functional/ex_cmds/sign_spec.lua | |
parent | f0845197d868735dc97aac72738b69c639c634b3 (diff) | |
download | rneovim-c095f83116eb8ef87983ca5fea61053755fbc4e5.tar.gz rneovim-c095f83116eb8ef87983ca5fea61053755fbc4e5.tar.bz2 rneovim-c095f83116eb8ef87983ca5fea61053755fbc4e5.zip |
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
Diffstat (limited to 'test/functional/ex_cmds/sign_spec.lua')
-rw-r--r-- | test/functional/ex_cmds/sign_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/ex_cmds/sign_spec.lua b/test/functional/ex_cmds/sign_spec.lua index b37e6e8563..df0f5db860 100644 --- a/test/functional/ex_cmds/sign_spec.lua +++ b/test/functional/ex_cmds/sign_spec.lua @@ -16,8 +16,8 @@ describe('sign', function() nvim('command', 'sign place 34 line=3 name=Foo buffer='..buf2) -- now unplace without specifying a buffer nvim('command', 'sign unplace 34') - eq("\n--- Signs ---\n", nvim('command_output', 'sign place buffer='..buf1)) - eq("\n--- Signs ---\n", nvim('command_output', 'sign place buffer='..buf2)) + eq("--- Signs ---\n", nvim('command_output', 'sign place buffer='..buf1)) + eq("--- Signs ---\n", nvim('command_output', 'sign place buffer='..buf2)) end) end) end) |