Skip to content
Myr

fix: show header only if not empty

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Maas Lalani · committed by Maas Lalani · parent 38521ff · Browse files · 1 file+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:filter/filter.go+4 added-1 removed
132 unmodified lines
133 return view134 }135136 view := m.textinput.View() + "\n" + m.viewport.View()137 if m.header != "" {137 return lipgloss.JoinVertical(lipgloss.Left, header, view)138 return lipgloss.JoinVertical(lipgloss.Left, header, view)139 }140 return view141}142143func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {144 var cmd tea.Cmd
171 unmodified lines