Skip to content

Commit

Permalink
dont scroll down metadata when list is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
GRFreire committed Dec 30, 2024
1 parent cbf1fc3 commit bd1f831
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/internal/handle_panel_movement.go
Original file line number Diff line number Diff line change
Expand Up @@ -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--
Expand Down

0 comments on commit bd1f831

Please sign in to comment.