fix(pager): lint

This commit is contained in:
Maas Lalani 2023-06-29 17:43:58 -04:00
parent 7e71c4d664
commit 0c1cc8e669
No known key found for this signature in database
GPG key ID: 5A6ED5CBF1A0A000

View file

@ -146,13 +146,13 @@ func (m model) View() string {
if m.hasTimeout {
timeoutStr = timeout.Str(m.timeout) + " "
}
helpMsg := "\n"+timeoutStr+" ↑/↓: Navigate • q: Quit • /: Search "
helpMsg := "\n" + timeoutStr + " ↑/↓: Navigate • q: Quit • /: Search "
if m.search.query != nil {
helpMsg += "• n: Next Match "
helpMsg += "• N: Prev Match "
}
if m.search.active {
return m.viewport.View() + "\n"+timeoutStr+ " "+ m.search.input.View()
return m.viewport.View() + "\n" + timeoutStr + " " + m.search.input.View()
}
return m.viewport.View() + m.helpStyle.Render(helpMsg)