mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
api/ext_tabline: curtab
should be a Tabpage handle.
This commit is contained in:
parent
b90a59333f
commit
7044aa6e82
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user