diff options
Diffstat (limited to 'widgets')
-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 ae3bca13..dc0c21aa 100644 --- a/widgets/compose.go +++ b/widgets/compose.go @@ -176,6 +176,9 @@ func (c *Composer) setupFor(acct *AccountView) error { if focusEditor != nil { c.focusable = append(c.focusable, focusEditor) } + if c.focused >= len(c.focusable) { + c.focused = len(c.focusable) - 1 + } // redraw the grid c.updateGrid() |