aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/functional/api/keymap_spec.lua4
-rw-r--r--test/functional/eval/map_functions_spec.lua2
-rw-r--r--test/functional/legacy/075_maparg_spec.lua6
3 files changed, 9 insertions, 3 deletions
diff --git a/test/functional/api/keymap_spec.lua b/test/functional/api/keymap_spec.lua
index 73c55a342c..fee787162e 100644
--- a/test/functional/api/keymap_spec.lua
+++ b/test/functional/api/keymap_spec.lua
@@ -29,6 +29,7 @@ describe('nvim_get_keymap', function()
nowait=0,
mode='n',
noremap=1,
+ lnum=0,
}
it('returns empty list when no map', function()
@@ -250,6 +251,7 @@ describe('nvim_get_keymap', function()
buffer=0,
nowait=0,
noremap=1,
+ lnum=0,
}
local function cpomap(lhs, rhs, mode)
local ret = shallowcopy(cpo_table)
@@ -306,6 +308,7 @@ describe('nvim_get_keymap', function()
buffer=0,
nowait=0,
noremap=1,
+ lnum=0,
}
command('nnoremap \\|<Char-0x20><Char-32><Space><Bar> \\|<Char-0x20><Char-32><Space> <Bar>')
eq({space_table}, meths.get_keymap('n'))
@@ -345,6 +348,7 @@ describe('nvim_set_keymap, nvim_del_keymap', function()
to_return.expr = not opts.expr and 0 or 1
to_return.sid = not opts.sid and 0 or opts.sid
to_return.buffer = not opts.buffer and 0 or opts.buffer
+ to_return.lnum = not opts.lnum and 0 or opts.lnum
return to_return
end
diff --git a/test/functional/eval/map_functions_spec.lua b/test/functional/eval/map_functions_spec.lua
index e914f674aa..2747a94570 100644
--- a/test/functional/eval/map_functions_spec.lua
+++ b/test/functional/eval/map_functions_spec.lua
@@ -21,6 +21,7 @@ describe('maparg()', function()
nowait=0,
mode='n',
noremap=1,
+ lnum=0,
}
it('returns a dictionary', function()
@@ -148,6 +149,7 @@ describe('maparg()', function()
nowait = 0,
sid = 0,
silent = 0,
+ lnum = 0,
}
end
diff --git a/test/functional/legacy/075_maparg_spec.lua b/test/functional/legacy/075_maparg_spec.lua
index fcfd33ec46..0164f5077a 100644
--- a/test/functional/legacy/075_maparg_spec.lua
+++ b/test/functional/legacy/075_maparg_spec.lua
@@ -49,9 +49,9 @@ describe('maparg()', function()
-- Assert buffer contents.
expect([[
is<F4>foo
- {'silent': 0, 'noremap': 0, 'lhs': 'foo<C-V>', 'mode': ' ', 'nowait': 0, 'expr': 0, 'sid': 0, 'rhs': 'is<F4>foo', 'buffer': 0}
- {'silent': 1, 'noremap': 1, 'lhs': 'bar', 'mode': 'v', 'nowait': 0, 'expr': 1, 'sid': 0, 'rhs': 'isbar', 'buffer': 1}
- {'silent': 0, 'noremap': 0, 'lhs': 'foo', 'mode': ' ', 'nowait': 1, 'expr': 0, 'sid': 0, 'rhs': 'bar', 'buffer': 1}
+ {'lnum': 0, 'silent': 0, 'noremap': 0, 'lhs': 'foo<C-V>', 'mode': ' ', 'nowait': 0, 'expr': 0, 'sid': 0, 'rhs': 'is<F4>foo', 'buffer': 0}
+ {'lnum': 0, 'silent': 1, 'noremap': 1, 'lhs': 'bar', 'mode': 'v', 'nowait': 0, 'expr': 1, 'sid': 0, 'rhs': 'isbar', 'buffer': 1}
+ {'lnum': 0, 'silent': 0, 'noremap': 0, 'lhs': 'foo', 'mode': ' ', 'nowait': 1, 'expr': 0, 'sid': 0, 'rhs': 'bar', 'buffer': 1}
xrx
yRy
abcd]])