mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
vim-patch:8.2.0491: cannot recognize a <script> mapping using maparg()
Problem: Cannot recognize a <script> mapping using maparg().
Solution: Add the "script" key. (closes vim/vim#5873)
2da0f0c445
This commit is contained in:
@@ -21,6 +21,7 @@ describe('nvim_get_keymap', function()
|
||||
local foo_bar_string = 'nnoremap foo bar'
|
||||
local foo_bar_map_table = {
|
||||
lhs='foo',
|
||||
script=0,
|
||||
silent=0,
|
||||
rhs='bar',
|
||||
expr=0,
|
||||
@@ -245,6 +246,7 @@ describe('nvim_get_keymap', function()
|
||||
|
||||
it('works correctly despite various &cpo settings', function()
|
||||
local cpo_table = {
|
||||
script=0,
|
||||
silent=0,
|
||||
expr=0,
|
||||
sid=0,
|
||||
@@ -302,6 +304,7 @@ describe('nvim_get_keymap', function()
|
||||
lhs='| |',
|
||||
rhs='| |',
|
||||
mode='n',
|
||||
script=0,
|
||||
silent=0,
|
||||
expr=0,
|
||||
sid=0,
|
||||
@@ -343,6 +346,7 @@ describe('nvim_set_keymap, nvim_del_keymap', function()
|
||||
to_return.noremap = not opts.noremap and 0 or 1
|
||||
to_return.lhs = lhs
|
||||
to_return.rhs = rhs
|
||||
to_return.script = 0
|
||||
to_return.silent = not opts.silent and 0 or 1
|
||||
to_return.nowait = not opts.nowait and 0 or 1
|
||||
to_return.expr = not opts.expr and 0 or 1
|
||||
|
||||
Reference in New Issue
Block a user