diff --git a/internal/ui/model/ui.go b/internal/ui/model/ui.go index 9a0cb92aa4e96a6bf4c2aa914ba3a826420f56b0..7895f323ba8c8a24de1eb5895e377cbeef761d40 100644 --- a/internal/ui/model/ui.go +++ b/internal/ui/model/ui.go @@ -2247,7 +2247,9 @@ func (m *UI) generateLayout(w, h int) layout { if !layout.editor.Empty() { // Add editor margins 1 top and bottom - layout.editor.Min.Y += 1 + if len(m.attachments.List()) == 0 { + layout.editor.Min.Y += 1 + } layout.editor.Max.Y -= 1 }