write marks to marks file on quit

Related #76
This commit is contained in:
Gokcehan committed 2018-07-11 20:09:26 +03:00
1 parent 0d0f7451ac
commit 211bcd0444
5 files changed
+79

No files matched your search

+4
View File
@@ -75,6 +75,10 @@ func (app *app) loop() {
case <-app.quitChan:
log.Print("bye!")
if err := app.nav.writeMarks(); err != nil {
log.Printf("writing marks file: %s", err)
}
if gLastDirPath != "" {
f, err := os.Create(gLastDirPath)
if err != nil {