fix: full width on gum filter

This commit is contained in:
Maas Lalani 2022-09-08 12:36:37 -04:00
parent c71c918c86
commit aa7683f5e0
No known key found for this signature in database
GPG key ID: 5A6ED5CBF1A0A000

View file

@ -108,6 +108,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
if m.height == 0 || m.height > msg.Height {
m.viewport.Height = msg.Height - lipgloss.Height(m.textinput.View())
}
m.viewport.Width = msg.Width
case tea.KeyMsg:
switch msg.String() {
case "ctrl+c", "esc":