diff options
Diffstat (limited to 'test/functional/autocmd/win_scrolled_resized_spec.lua')
-rw-r--r-- | test/functional/autocmd/win_scrolled_resized_spec.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/autocmd/win_scrolled_resized_spec.lua b/test/functional/autocmd/win_scrolled_resized_spec.lua index 26d2b68ad4..c2a534ab27 100644 --- a/test/functional/autocmd/win_scrolled_resized_spec.lua +++ b/test/functional/autocmd/win_scrolled_resized_spec.lua @@ -45,7 +45,7 @@ describe('WinScrolled', function() local win_id before_each(function() - win_id = api.nvim_get_current_win().id + win_id = api.nvim_get_current_win() command(string.format('autocmd WinScrolled %d let g:matched = v:true', win_id)) exec([[ let g:scrolled = 0 @@ -313,7 +313,7 @@ describe('WinScrolled', function() style = 'minimal', }) screen:expect({ any = '@' }) - local winid_str = tostring(win.id) + local winid_str = tostring(win) -- WinScrolled should not be triggered when creating a new floating window eq(0, eval('g:scrolled')) @@ -327,7 +327,7 @@ describe('WinScrolled', function() api.nvim_input_mouse('wheel', 'up', '', 0, 3, 3) eq(2, eval('g:scrolled')) - eq(tostring(win.id), eval('g:amatch')) + eq(tostring(win), eval('g:amatch')) eq({ all = { leftcol = 0, topline = 3, topfill = 0, width = 0, height = 0, skipcol = 0 }, [winid_str] = { leftcol = 0, topline = -3, topfill = 0, width = 0, height = 0, skipcol = 0 }, |