diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-09-14 18:52:16 -0700 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-09-14 18:57:35 -0700 |
commit | ffdf8c4c1227874a62b950cc7138005b40004c6a (patch) | |
tree | 63a0fde18014ec2be04cadc81486cf7fe5243ef6 /test/functional/api/vim_spec.lua | |
parent | f2c75ef9b481e6c3b65f7b37a3c8e8afc5c73be3 (diff) | |
download | rneovim-ffdf8c4c1227874a62b950cc7138005b40004c6a.tar.gz rneovim-ffdf8c4c1227874a62b950cc7138005b40004c6a.tar.bz2 rneovim-ffdf8c4c1227874a62b950cc7138005b40004c6a.zip |
Context: rename "buflist" => "bufs"
Given the other type names "jumps", "vars", etc., the name "buflist"
is somewhat unintuitive.
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r-- | test/functional/api/vim_spec.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index 77296e27f6..8b77dbcaa6 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -903,7 +903,7 @@ describe('API', function() pcall_err(nvim, 'get_context', {types={'jumps', 'zub', 'zam',}})) end) it('returns map of current editor state', function() - local opts = {types={'regs', 'jumps', 'buflist', 'gvars'}} + local opts = {types={'regs', 'jumps', 'bufs', 'gvars'}} eq({}, parse_context(nvim('get_context', {}))) feed('i1<cr>2<cr>3<c-[>ddddddqahjklquuu') @@ -929,7 +929,7 @@ describe('API', function() { k, v -> k != "l" || v != 1 })'), '!empty(v:val.f)') ]]):gsub('\n', '')), - ['buflist'] = eval([[ + ['bufs'] = eval([[ filter(map(getbufinfo(), '{ "f": v:val.name }'), '!empty(v:val.f)') ]]), @@ -944,7 +944,7 @@ describe('API', function() describe('nvim_load_context', function() it('sets current editor state to given context dictionary', function() - local opts = {types={'regs', 'jumps', 'buflist', 'gvars'}} + local opts = {types={'regs', 'jumps', 'bufs', 'gvars'}} eq({}, parse_context(nvim('get_context', opts))) nvim('set_var', 'one', 1) |