Skip to content
Myr

fix(viewport): remove extra line in viewport help (#816)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Carlos Alexandro Becker · committed by GitHub · parent 65516a6 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:pager/pager.go+2 added-2 removed
120 unmodified lines
121 return m, cmd122}123124func (m *model) helpView() string {125 return "\n" + m.help.View(m.keymap)125 return m.help.View(m.keymap)126}127128func (m *model) processText(msg tea.WindowSizeMsg) {129 m.viewport.Height = msg.Height - lipgloss.Height(m.helpView())
90 unmodified lines
220 if m.search.active {221 return m.viewport.View() + "\n " + m.search.input.View()222 }223224 return m.viewport.View() + m.helpView()224 return m.viewport.View() + "\n" + m.helpView()225}