do not follow symlinks on exit
This commit is contained in:
1 parent
fac1c9e8de
commit
bc4c3c127b
2 files changed
+18
-19
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user