handle broken links with 'select' command

Related #201
This commit is contained in:
Gokcehan committed 2020-07-20 02:15:30 +03:00
1 parent 6d1a840587
commit 7174b7e307
4 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -712,7 +712,7 @@ func (e *callExpr) eval(app *app, args []string) {
app.nav.toggle()
} else {
for _, path := range e.args {
if _, err := os.Stat(path); err == nil {
if _, err := os.Lstat(path); err == nil {
app.nav.toggleSelection(path)
} else {
log.Printf("toggle: %s", err)