Add a selection mode that limits the selection to the current directory. (#849)

This commit is contained in:
Christian Zangl authored and GitHub committed 2022-10-15 15:43:15 +03:00
1 parent 479ed924f7
commit 21a32a7603
8 files changed
+45 -8

No files matched your search

+3 -2
View File
@@ -789,8 +789,9 @@ func (ui *ui) drawStatLine(nav *nav) {
}
}
if len(nav.selections) > 0 {
selection += fmt.Sprintf(" \033[35;7m %d \033[0m", len(nav.selections))
currSelections := nav.currSelections()
if len(currSelections) > 0 {
selection += fmt.Sprintf(" \033[35;7m %d \033[0m", len(currSelections))
}
if len(dir.filter) != 0 {