mirror of
https://github.com/neovim/neovim.git
synced 2026-01-04 18:37:02 +10:00
refactor(tests): get channel id via nvim_get_chan_info #27441
Minor "best practices" nudge.
This commit is contained in:
@@ -362,7 +362,7 @@ local function function_specs_for(fn, sync, first_arg_factory, init)
|
||||
end
|
||||
|
||||
local function channel()
|
||||
return api.nvim_get_api_info()[1]
|
||||
return api.nvim_get_chan_info(0).id
|
||||
end
|
||||
|
||||
local function host()
|
||||
|
||||
Reference in New Issue
Block a user