Skip to content

Commit

Permalink
feat: move cursor to next row when marked
Browse files Browse the repository at this point in the history
  • Loading branch information
dundee committed Dec 27, 2022
1 parent 894b254 commit 058a14d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tui/marked.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ func (ui *UI) fileItemMarked(row int) {
ui.markedRows[row] = struct{}{}
}
ui.showDir()
ui.table.Select(row, 0)
// select next row if possible
ui.table.Select(min(row+1, ui.table.GetRowCount()-1), 0)
}

func (ui *UI) deleteMarked(shouldEmpty bool) {
Expand Down

0 comments on commit 058a14d

Please sign in to comment.