mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-21 23:54:17 +02: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…
Add table
Add a link
Reference in a new issue