handle non-existent directories during reload
This commit is contained in:
1 parent
a0935fabcb
commit
d3f9a3588f
4 files changed
+27
-17
No files matched your search
+2
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user