API/nvim_command_output: handle :echon capture (#8265)

ref https://github.com/neovim/python-client/pull/290
This commit is contained in:
Justin M. Keyes
2018-04-13 00:49:37 +02:00
committed by GitHub
parent 5e18550ddd
commit 1c3a849881
2 changed files with 12 additions and 8 deletions

View File

@@ -73,6 +73,8 @@ describe('api', function()
it('captures command output', function()
eq('this is\nspinal tap',
nvim('command_output', [[echo "this is\nspinal tap"]]))
eq('no line ending!',
nvim('command_output', [[echon "no line ending!"]]))
end)
it('captures empty command output', function()