mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 03:58:32 +00:00
api/ext_tabline: curtab
should be a Tabpage handle.
This commit is contained in:
@@ -7035,7 +7035,7 @@ static void draw_tabline(void)
|
||||
void ui_ext_tabline_update(void)
|
||||
{
|
||||
Array args = ARRAY_DICT_INIT;
|
||||
ADD(args, INTEGER_OBJ(curtab->handle));
|
||||
ADD(args, TABPAGE_OBJ(curtab->handle));
|
||||
Array tabs = ARRAY_DICT_INIT;
|
||||
FOR_ALL_TABS(tp) {
|
||||
Dictionary tab_info = ARRAY_DICT_INIT;
|
||||
|
@@ -36,7 +36,7 @@ describe('ui/tabline', function()
|
||||
~ |
|
||||
|
|
||||
]], nil, nil, function()
|
||||
eq(2, event_curtab)
|
||||
eq({ id = 2 }, event_curtab)
|
||||
eq(expected_tabs, event_tabs)
|
||||
end)
|
||||
|
||||
@@ -48,7 +48,7 @@ describe('ui/tabline', function()
|
||||
~ |
|
||||
|
|
||||
]], nil, nil, function()
|
||||
eq(1, event_curtab)
|
||||
eq({ id = 1 }, event_curtab)
|
||||
eq(expected_tabs, event_tabs)
|
||||
end)
|
||||
|
||||
|
Reference in New Issue
Block a user