diff --git a/lua/lazy/manage/runner.lua b/lua/lazy/manage/runner.lua index 2d707c2..6a01609 100644 --- a/lua/lazy/manage/runner.lua +++ b/lua/lazy/manage/runner.lua @@ -136,7 +136,7 @@ function Runner:_start() wait_step = s.step else s.task = self:queue(plugin, step) - plugin._.working = not not s.task + plugin._.working = true active = active + 1 end end diff --git a/lua/lazy/view/init.lua b/lua/lazy/view/init.lua index 5702531..c531927 100644 --- a/lua/lazy/view/init.lua +++ b/lua/lazy/view/init.lua @@ -146,7 +146,11 @@ end function M:update() if self.buf and vim.api.nvim_buf_is_valid(self.buf) then vim.bo[self.buf].modifiable = true + local view = vim.api.nvim_win_call(self.view.win, vim.fn.winsaveview) self.render:update() + vim.api.nvim_win_call(self.view.win, function() + vim.fn.winrestview(view) + end) vim.bo[self.buf].modifiable = false vim.cmd.redraw() end