diff --git a/src/internal/handle_panel_movement.go b/src/internal/handle_panel_movement.go index a2e35e25..b539840c 100644 --- a/src/internal/handle_panel_movement.go +++ b/src/internal/handle_panel_movement.go @@ -544,6 +544,10 @@ func (m *model) controlMetadataListUp(wheel bool) { runTime = wheelRunTime } + if len(m.fileMetaData.metaData) == 0 { + return + } + for i := 0; i < runTime; i++ { if m.fileMetaData.renderIndex > 0 { m.fileMetaData.renderIndex--