mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
functests: Test how spaces appear in get_keymap output
This commit is contained in:
@@ -293,4 +293,20 @@ describe('get_keymap', function()
|
|||||||
meths.get_keymap('o'))
|
meths.get_keymap('o'))
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
it('always uses space for space and bar for bar', function()
|
||||||
|
local space_table = {
|
||||||
|
lhs='| |',
|
||||||
|
rhs='| |',
|
||||||
|
mode='n',
|
||||||
|
silent=0,
|
||||||
|
expr=0,
|
||||||
|
sid=0,
|
||||||
|
buffer=0,
|
||||||
|
nowait=0,
|
||||||
|
noremap=1,
|
||||||
|
}
|
||||||
|
command('nnoremap \\|<Char-0x20><Char-32><Space><Bar> \\|<Char-0x20><Char-32><Space> <Bar>')
|
||||||
|
eq({space_table}, meths.get_keymap('n'))
|
||||||
|
end)
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user