Skip to content

Commit

Permalink
null check directory preview before sort
Browse files Browse the repository at this point in the history
  • Loading branch information
gokcehan committed Apr 20, 2018
1 parent 3b04375 commit d267bc7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,9 @@ func (ui *ui) renew() {
}

func (ui *ui) sort() {
if ui.dirPrev == nil {
return
}
name := ui.dirPrev.name()
ui.dirPrev.sort()
ui.dirPrev.find(name, ui.wins[0].h)
Expand Down

0 comments on commit d267bc7

Please sign in to comment.