chore: Remove duplicate and redundant code (#626)

Signed-off-by: cuishuang <imcusg@gmail.com>
This commit is contained in:
cui fliter
2024-10-07 15:29:06 -03:00
committed by GitHub
parent cf3f46ab31
commit 076b578512
-2
View File
@@ -219,8 +219,6 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
m.MoveUp(m.viewport.Height / 2)
case key.Matches(msg, m.KeyMap.HalfPageDown):
m.MoveDown(m.viewport.Height / 2)
case key.Matches(msg, m.KeyMap.LineDown):
m.MoveDown(1)
case key.Matches(msg, m.KeyMap.GotoTop):
m.GotoTop()
case key.Matches(msg, m.KeyMap.GotoBottom):