diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-12-08 08:00:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-08 08:00:27 +0800 |
commit | 3bb5d2f2192b63e368a4f573f66406eba3ee66b3 (patch) | |
tree | 05ce75681734aae42887dcf1b02c802dab08c731 /test/functional/api/buffer_updates_spec.lua | |
parent | 5e3c1b976ab4664bde2f546ac15510f4d888a39e (diff) | |
download | rneovim-3bb5d2f2192b63e368a4f573f66406eba3ee66b3.tar.gz rneovim-3bb5d2f2192b63e368a4f573f66406eba3ee66b3.tar.bz2 rneovim-3bb5d2f2192b63e368a4f573f66406eba3ee66b3.zip |
test: use termopen() instead of :terminal more (#26462)
Diffstat (limited to 'test/functional/api/buffer_updates_spec.lua')
-rw-r--r-- | test/functional/api/buffer_updates_spec.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/functional/api/buffer_updates_spec.lua b/test/functional/api/buffer_updates_spec.lua index bf76db432f..6c250ad6ce 100644 --- a/test/functional/api/buffer_updates_spec.lua +++ b/test/functional/api/buffer_updates_spec.lua @@ -1,6 +1,7 @@ local helpers = require('test.functional.helpers')(after_each) local clear = helpers.clear local eq, ok = helpers.eq, helpers.ok +local funcs = helpers.funcs local buffer, command, eval, nvim, next_msg = helpers.buffer, helpers.command, helpers.eval, helpers.nvim, helpers.next_msg local nvim_prog = helpers.nvim_prog @@ -832,7 +833,10 @@ describe('API: buffer events:', function() it('when :terminal lines change', function() local buffer_lines = {} local expected_lines = {} - command('terminal "'..nvim_prog..'" -u NONE -i NONE -n -c "set shortmess+=A"') + funcs.termopen({ nvim_prog, '-u', 'NONE', '-i', 'NONE', '-n', '-c', 'set shortmess+=A' }, { + env = { VIMRUNTIME = os.getenv('VIMRUNTIME') } + }) + local b = nvim('get_current_buf') ok(buffer('attach', b, true, {})) |