This commit is contained in:
Mikael Fangel 2023-04-04 23:00:42 +02:00 committed by Maas Lalani
parent 39a8c1705b
commit 86c66fd6cb
No known key found for this signature in database
GPG key ID: 5A6ED5CBF1A0A000

View file

@ -93,7 +93,7 @@ func (m model) KeyHandler(key tea.KeyMsg) (model, func() tea.Msg) {
m.content = m.origContent
m.search.Execute(&m)
// Trigger a view update to highlight the found matches.
// Trigger a view update to highlight the found matches.
m.search.NextMatch(&m)
m.ProcessText(tea.WindowSizeMsg{Height: m.viewport.Height + 2, Width: m.viewport.Width})
} else {