mirror of
https://github.com/charmbracelet/glow
synced 2024-11-10 06:04:18 +00:00
Reset cursor and page positions when entering the search state
This commit is contained in:
parent
aba133b7e6
commit
2131b255ef
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue