Refresh preview even if selection doesn't change (#1074)

This commit is contained in:
Joe Lim authored and GitHub committed 2023-02-11 20:01:46 +03:00
1 parent 0b99aaed4e
commit 4a443cae58
1 file changed
+3 -4
+3 -4
View File
@@ -679,11 +679,10 @@ func (ui *ui) loadFile(app *app, volatile bool) {
return
}
if curr.path == ui.currentFile {
return
if curr.path != ui.currentFile {
ui.currentFile = curr.path
onSelect(app)
}
ui.currentFile = curr.path
onSelect(app)
if !gOpts.preview {
return