diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2017-04-09 22:51:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-09 22:51:59 +0200 |
| commit | d7fb7de70aee3dff48abc61986818dee86afed07 (patch) | |
| tree | a9263b8deb57161f2b5315117371af026759c79b /test/functional/terminal/tui_spec.lua | |
| parent | dbdd69e418a3baa4750abc25fae7516a36776e75 (diff) | |
| parent | dbe67868b53774443521129ef30d74346592e3bb (diff) | |
| download | rneovim-d7fb7de70aee3dff48abc61986818dee86afed07.tar.gz rneovim-d7fb7de70aee3dff48abc61986818dee86afed07.tar.bz2 rneovim-d7fb7de70aee3dff48abc61986818dee86afed07.zip | |
Merge #6481 from ZyX-I/rename-execute
Rename execute() function to feed_command()
Diffstat (limited to 'test/functional/terminal/tui_spec.lua')
| -rw-r--r-- | test/functional/terminal/tui_spec.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index e56fd2db5c..b14bceecdd 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -3,7 +3,7 @@ local helpers = require('test.functional.helpers')(after_each) local thelpers = require('test.functional.terminal.helpers') local feed_data = thelpers.feed_data -local execute = helpers.execute +local feed_command = helpers.feed_command local nvim_dir = helpers.nvim_dir local retry = helpers.retry @@ -60,7 +60,7 @@ describe('tui', function() it('interprets leading <Esc> byte as ALT modifier in normal-mode', function() local keys = 'dfghjkl' for c in keys:gmatch('.') do - execute('nnoremap <a-'..c..'> ialt-'..c..'<cr><esc>') + feed_command('nnoremap <a-'..c..'> ialt-'..c..'<cr><esc>') feed_data('\027'..c) end screen:expect([[ @@ -153,7 +153,7 @@ describe('tui', function() end) it('can handle arbitrarily long bursts of input', function() - execute('set ruler') + feed_command('set ruler') local t = {} for i = 1, 3000 do t[i] = 'item ' .. tostring(i) @@ -231,7 +231,7 @@ describe('tui focus event handling', function() end) it('can handle focus events in insert mode', function() - execute('set noshowmode') + feed_command('set noshowmode') feed_data('i') feed_data('\027[I') screen:expect([[ |