handle non-existent directories during reload

This commit is contained in:
Gokcehan committed 2018-07-30 20:56:57 +03:00
1 parent a0935fabcb
commit d3f9a3588f
4 files changed
+27 -17

No files matched your search

+2 -1
View File
@@ -190,8 +190,9 @@ func matchFile(s string) (matches []string, longest string) {
wd, err := os.Getwd()
if err != nil {
log.Printf("getting current directory: %s", err)
} else {
dir = wd + string(filepath.Separator) + dir
}
dir = wd + string(filepath.Separator) + dir
}
dir = unescape(filepath.Dir(dir))