diff options
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/compose.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/compose.go b/widgets/compose.go index 4f6f7a1a..6a41e706 100644 --- a/widgets/compose.go +++ b/widgets/compose.go @@ -553,7 +553,7 @@ type reviewMessage struct { func newReviewMessage(composer *Composer, err error) *reviewMessage { spec := []ui.GridSpec{{ui.SIZE_EXACT, 2}, {ui.SIZE_EXACT, 1}} - for range composer.attachments { + for i := 0; i < len(composer.attachments)-1; i++ { spec = append(spec, ui.GridSpec{ui.SIZE_EXACT, 1}) } // make the last element fill remaining space |