fix: nil pointer in view (#403)

closes #397
This commit is contained in:
Carlos Alexandro Becker
2025-07-31 13:42:54 -03:00
committed by GitHub
parent 8248e4f649
commit 705790d336

View File

@@ -410,7 +410,7 @@ func (m *editorCmp) randomizePlaceholders() {
func (m *editorCmp) View() string {
t := styles.CurrentTheme()
// Update placeholder
if m.app.CoderAgent.IsBusy() {
if m.app.CoderAgent != nil && m.app.CoderAgent.IsBusy() {
m.textarea.Placeholder = m.workingPlaceholder
} else {
m.textarea.Placeholder = m.readyPlaceholder