1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-02 23:27:32 +02:00

Remove call to Render()

As far as I can tell, this is not needed. The call to Refresh at the end of
backgroundFetch takes care of redrawing after refreshing.

The call was added in 2fc1498517, that's a long time ago, and we had multiple
big refactorings since then. Maybe it was needed back then but no longer is
today.
This commit is contained in:
Stefan Haller 2025-01-26 15:16:12 +01:00
parent 55236802c3
commit 9ea2ff8f41

View File

@ -76,9 +76,7 @@ func (self *BackgroundRoutineMgr) startBackgroundFetch() {
self.gui.waitForIntro.Wait()
fetch := func() error {
err := self.backgroundFetch()
self.gui.c.Render()
return err
return self.backgroundFetch()
}
// We want an immediate fetch at startup, and since goEvery starts by