fix: allow skipped previews to be reloaded (#2292)

* fix: allow skipped previews to be reloaded

* Update `CHANGELOG.md`
This commit is contained in:
Joe Lim authored and GitHub committed 2025-12-10 13:49:54 +11:00
1 parent a9dbaa9dd1
commit 7727b28fbe
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -930,7 +930,7 @@ func (nav *nav) preview(path string, win *win, mode string) {
func (nav *nav) loadReg(path string, volatile bool) *reg {
r, ok := nav.regCache[path]
if !ok {
if !ok || (!gOpts.preload && r.loading) {
r = &reg{loading: true, loadTime: time.Now(), path: path}
nav.regCache[path] = r
nav.startPreview()