diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/pets/animations.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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 |