null check directory preview before sort
This commit is contained in:
parent
3b043752a4
commit
d267bc70d4
3
ui.go
3
ui.go
@ -450,6 +450,9 @@ func (ui *ui) renew() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (ui *ui) sort() {
|
func (ui *ui) sort() {
|
||||||
|
if ui.dirPrev == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
name := ui.dirPrev.name()
|
name := ui.dirPrev.name()
|
||||||
ui.dirPrev.sort()
|
ui.dirPrev.sort()
|
||||||
ui.dirPrev.find(name, ui.wins[0].h)
|
ui.dirPrev.find(name, ui.wins[0].h)
|
||||||
|
Loading…
Reference in New Issue
Block a user