api/ext_tabline: curtab should be a Tabpage handle.

This commit is contained in:
Justin M. Keyes 2017-04-28 07:01:46 +02:00
parent b90a59333f
commit 7044aa6e82
2 changed files with 3 additions and 3 deletions

View File

@ -7035,7 +7035,7 @@ static void draw_tabline(void)
void ui_ext_tabline_update(void) void ui_ext_tabline_update(void)
{ {
Array args = ARRAY_DICT_INIT; Array args = ARRAY_DICT_INIT;
ADD(args, INTEGER_OBJ(curtab->handle)); ADD(args, TABPAGE_OBJ(curtab->handle));
Array tabs = ARRAY_DICT_INIT; Array tabs = ARRAY_DICT_INIT;
FOR_ALL_TABS(tp) { FOR_ALL_TABS(tp) {
Dictionary tab_info = ARRAY_DICT_INIT; Dictionary tab_info = ARRAY_DICT_INIT;

View File

@ -36,7 +36,7 @@ describe('ui/tabline', function()
~ | ~ |
| |
]], nil, nil, function() ]], nil, nil, function()
eq(2, event_curtab) eq({ id = 2 }, event_curtab)
eq(expected_tabs, event_tabs) eq(expected_tabs, event_tabs)
end) end)
@ -48,7 +48,7 @@ describe('ui/tabline', function()
~ | ~ |
| |
]], nil, nil, function() ]], nil, nil, function()
eq(1, event_curtab) eq({ id = 1 }, event_curtab)
eq(expected_tabs, event_tabs) eq(expected_tabs, event_tabs)
end) end)