do not follow symlinks on exit

This commit is contained in:
Gokcehan committed 2016-08-14 15:45:24 +03:00
1 parent fac1c9e8de
commit bc4c3c127b
2 files changed
+18 -19

No files matched your search

+16
View File
@@ -34,6 +34,22 @@ func (app *App) handleInp() {
for {
if gExitFlag {
log.Print("bye!")
if gLastDirPath != "" {
f, err := os.Create(gLastDirPath)
if err != nil {
log.Print(err)
}
defer f.Close()
dir := app.nav.currDir()
_, err = f.WriteString(dir.path)
if err != nil {
log.Print(err)
}
}
return
}
e := app.ui.getExpr()