From a064533f569572b14f4ef1231a8a0e8e678ad5c1 Mon Sep 17 00:00:00 2001 From: Giuseppe Gadola Date: Fri, 17 Feb 2023 16:45:47 +0100 Subject: fix(toggles): fix pet spawning one row below while paused --- lua/pets/animations.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lua/pets') diff --git a/lua/pets/animations.lua b/lua/pets/animations.lua index a060720..3324b61 100644 --- a/lua/pets/animations.lua +++ b/lua/pets/animations.lua @@ -96,7 +96,9 @@ function M.Animation:start() if not self.state.paused and not self.state.hidden then M.Animation.start_timer(self) elseif self.state.paused and not self.state.hidden then - M.Animation.next_frame(self) + vim.schedule(function() + M.Animation.next_frame(self) + end) end end -- cgit v1.3-2-g11bf