Skip to content

Commit

Permalink
fix: view:get_item when opening two buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
amedama41 committed Oct 28, 2023
1 parent 1b594d5 commit 1bea958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/vfiler/view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function View:get_item(lnum)
if not self._items then
return nil
end
lnum = lnum or vim.fn.line('.')
lnum = lnum or vim.fn.line('.', self:winid())
return self._items.list[lnum]
end

Expand Down

0 comments on commit 1bea958

Please sign in to comment.