From 0cd634e9a8715a956a4442379bca996264c3f960 Mon Sep 17 00:00:00 2001 From: Marius Date: Thu, 13 May 2021 20:31:25 +0200 Subject: [PATCH] Preserve ' bookmark on sync (#624) --- nav.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nav.go b/nav.go index 5f15182..3104102 100644 --- a/nav.go +++ b/nav.go @@ -1010,7 +1010,13 @@ func (nav *nav) sync() error { nav.saves[f] = cp } - return nav.readMarks() + path, ok := nav.marks["'"] + err = nav.readMarks() + if ok { + nav.marks["'"] = path + } + + return err } func (nav *nav) cd(wd string) error {