From 43229c723ddf8f9e797ddcefd751adbb05c1d1b2 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Thu, 18 Dec 2025 15:58:03 -0500 Subject: [PATCH] fix(lazygit): handle nil case --- internal/tui/components/dialogs/termdialog/termdialog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/tui/components/dialogs/termdialog/termdialog.go b/internal/tui/components/dialogs/termdialog/termdialog.go index 83e5eb1232af7bb47f848c299f05e6d3710e24f4..1ad3a5d9b92ce9951312baac5f8c06bd6056d2a7 100644 --- a/internal/tui/components/dialogs/termdialog/termdialog.go +++ b/internal/tui/components/dialogs/termdialog/termdialog.go @@ -193,7 +193,7 @@ func (d *Dialog) View() string { t := styles.CurrentTheme() var termContent string - if d.term.Started() { + if d.term != nil && d.term.Started() { termContent = d.term.Render() } else { termContent = d.loadingMsg