diff options
Diffstat (limited to 'widgets/compose.go')
-rw-r--r-- | widgets/compose.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/compose.go b/widgets/compose.go index db83a608..3bb334b7 100644 --- a/widgets/compose.go +++ b/widgets/compose.go @@ -812,6 +812,9 @@ func (c *Composer) termEvent(event tcell.Event) bool { } func (c *Composer) termClosed(err error) { + if c.editor == nil { + return + } c.grid.RemoveChild(c.editor) c.review = newReviewMessage(c, err) c.grid.AddChild(c.review).At(3, 0) |