mirror of
https://github.com/neovim/neovim.git
synced 2026-05-03 12:35:00 +00:00
refactor: move some constants out of vim_defs.h (#26298)
This commit is contained in:
@@ -487,7 +487,7 @@ describe('nvim_set_keymap, nvim_del_keymap', function()
|
||||
end)
|
||||
|
||||
it('error if LHS longer than MAXMAPLEN', function()
|
||||
-- assume MAXMAPLEN of 50 chars, as declared in vim.h
|
||||
-- assume MAXMAPLEN of 50 chars, as declared in mapping_defs.h
|
||||
local MAXMAPLEN = 50
|
||||
local lhs = ''
|
||||
for i=1,MAXMAPLEN do
|
||||
|
||||
@@ -199,7 +199,7 @@ describe('server -> client', function()
|
||||
|
||||
it('can communicate buffers, tabpages, and windows', function()
|
||||
eq({1}, eval("rpcrequest(vim, 'nvim_list_tabpages')"))
|
||||
-- Window IDs start at 1000 (LOWEST_WIN_ID in vim.h)
|
||||
-- Window IDs start at 1000 (LOWEST_WIN_ID in window.h)
|
||||
eq({1000}, eval("rpcrequest(vim, 'nvim_list_wins')"))
|
||||
|
||||
local buf = eval("rpcrequest(vim, 'nvim_list_bufs')")[1]
|
||||
|
||||
Reference in New Issue
Block a user