Skip to content

Commit

Permalink
fix: ensure first line is selected when padding is false (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrnxf committed Jan 19, 2023
1 parent a16e330 commit b2d6ac8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/trouble/view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,9 @@ function View:focus()
local line = self:get_line()
if line == 1 then
self:next_item()
self:next_item()
if config.options.padding then
self:next_item()
end
end
end

Expand Down

0 comments on commit b2d6ac8

Please sign in to comment.