Clear fileinfo if the directory is empty (#1808)

This commit is contained in:
Joe Lim authored and GitHub committed 2024-10-11 10:18:13 +11:00
1 parent f066df674a
commit 4de690db5e
1 file changed
+3 -1
+3 -1
View File
@@ -773,6 +773,9 @@ func (ui *ui) loadFileInfo(nav *nav) {
return
}
ui.msg = ""
ui.msgIsStat = true
curr, err := nav.currFile()
if err != nil {
return
@@ -807,7 +810,6 @@ func (ui *ui) loadFileInfo(nav *nav) {
}
ui.msg = fileInfo
ui.msgIsStat = true
}
func (ui *ui) drawPromptLine(nav *nav) {