Skip to content

Commit

Permalink
Clear fileinfo if the directory is empty (#1808)
Browse files Browse the repository at this point in the history
  • Loading branch information
joelim-work authored Oct 10, 2024
1 parent f066df6 commit 4de690d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,9 @@ func (ui *ui) loadFileInfo(nav *nav) {
return
}

ui.msg = ""
ui.msgIsStat = true

curr, err := nav.currFile()
if err != nil {
return
Expand Down Expand Up @@ -807,7 +810,6 @@ func (ui *ui) loadFileInfo(nav *nav) {
}

ui.msg = fileInfo
ui.msgIsStat = true
}

func (ui *ui) drawPromptLine(nav *nav) {
Expand Down

0 comments on commit 4de690d

Please sign in to comment.