Preserve ' bookmark on sync (#624)

This commit is contained in:
Marius 2021-05-13 20:31:25 +02:00 committed by GitHub
parent 843afdfe4f
commit 0cd634e9a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

8
nav.go
View File

@ -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 {