From 164f7da33dc82610bd910b71a566e15170414fe4 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Mon, 4 May 2026 18:39:54 +0200 Subject: [PATCH] Fix missing layout call after switching repos This didn't cause a bug so far because switching repos always happens from within an OnWaitingStatus, so the spinner would take care of calling layout and draw. However, later in this branch we are going to optimize the spinner so that it no longer calls layout, at which point this would break, so make sure we rerender at the point where it's needed. --- pkg/gui/gui.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index ce22f4240..1f49b857a 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -428,6 +428,8 @@ func (gui *Gui) onNewRepo(startArgs appTypes.StartArgs, contextKey types.Context gui.c.Context().Push(contextToPush, types.OnFocusOpts{}) + gui.render() + return nil }