From 2131b255efa3098b508610e98ded26f526198db0 Mon Sep 17 00:00:00 2001 From: Nicolas Martin Date: Wed, 28 Oct 2020 02:50:47 +0100 Subject: [PATCH] Reset cursor and page positions when entering the search state --- ui/stash.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/stash.go b/ui/stash.go index 46c072e..cd8f78a 100644 --- a/ui/stash.go +++ b/ui/stash.go @@ -495,6 +495,8 @@ func stashUpdate(msg tea.Msg, m stashModel) (stashModel, tea.Cmd) { case "/": m.hideStatusMessage() + m.paginator.Page = 0 + m.index = 0 m.state = stashStateSearchNotes m.searchInput.CursorEnd() m.searchInput.Focus()