Expand tilde on Windows as well (fixes #289)

This commit is contained in:
Jakob Borg 2014-05-26 16:58:03 +02:00
parent 6b9dce36bf
commit c519e582b5

View File

@ -695,6 +695,7 @@ func expandTilde(p string) string {
return getHomeDir()
}
p = filepath.FromSlash(p)
if !strings.HasPrefix(p, fmt.Sprintf("~%c", os.PathSeparator)) {
return p
}