Ensure the search binding "/" always works

This commit is contained in:
Nicolas Martin 2020-10-28 01:58:40 +01:00 committed by Christian Rocha
parent c91501655f
commit 89965743a1

View file

@ -492,10 +492,6 @@ func stashUpdate(msg tea.Msg, m stashModel) (stashModel, tea.Cmd) {
case "/": case "/":
m.hideStatusMessage() m.hideStatusMessage()
if pages == 0 {
break
}
m.state = stashStateSearchNotes m.state = stashStateSearchNotes
m.searchInput.CursorEnd() m.searchInput.CursorEnd()
m.searchInput.Focus() m.searchInput.Focus()