Skip to content

Commit

Permalink
Simplerer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Oct 15, 2024
1 parent 2ebc4db commit 28afdc7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lua/lean/infoview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1046,16 +1046,13 @@ function Pin:async_update()
-- while it's closed, which if we continued, would end up calling
-- render. That doesn't seem right, somewhere that should happen
-- higher up than here.
if self.paused or not self.__info.__infoview.window then
if self.paused or not self.__info.__infoview.window or not self.__position_params then
return
end

self.__tick = self.__tick + 1
local tick = self.__tick

if self.__position_params and not self.paused then
self:__update()
end
self:__update()
if self.__tick ~= tick then
return
end
Expand Down

0 comments on commit 28afdc7

Please sign in to comment.