Skip to content

Commit

Permalink
fix(view): store restore locations when moving the cursor. See #367
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 30, 2024
1 parent a00f78d commit d8265a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/trouble/view/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ function M:on_mount()
if not this then
return true
end
M._last[self.opts.mode or ""] = self:at()
if this.opts.auto_preview then
local loc = this:at()
if loc and loc.item then
Expand Down

0 comments on commit d8265a6

Please sign in to comment.