@@ -2247,7 +2247,9 @@ func (m *UI) generateLayout(w, h int) layout {
2248 if !layout.editor.Empty() {
2248 if !layout.editor.Empty() {
2249 // Add editor margins 1 top and bottom
2249 // Add editor margins 1 top and bottom
2250+ if len(m.attachments.List()) == 0 {
2250− layout.editor.Min.Y += 1
2251+ layout.editor.Min.Y += 1
2251 layout.editor.Max.Y -= 1
2253 layout.editor.Max.Y -= 1