sort directory preview when options are changed

This commit is contained in:
Gokcehan committed 2018-04-18 21:57:41 +03:00
1 parent 8eb9055622
commit 09b1daaade
2 files changed
+16

No files matched your search

+6
View File
@@ -449,6 +449,12 @@ func (ui *ui) renew() {
ui.menuWin.renew(wtot, 1, 0, htot-2)
}
func (ui *ui) sort() {
name := ui.dirPrev.name()
ui.dirPrev.sort()
ui.dirPrev.find(name, ui.wins[0].h)
}
func (ui *ui) print(msg string) {
ui.msg = msg
log.Print(msg)