Skip to content

Commit 3c6255a

Browse files
committed
Handle edge case
1 parent d9c7e00 commit 3c6255a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: internal/config/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func (c *Config) loadSettings() error {
210210
}
211211

212212
func normalizePath(homeDir string, path string) string {
213-
if strings.HasPrefix(path, "~") {
213+
if path == "~" || strings.HasPrefix(path, "~/") {
214214
path = filepath.Join(homeDir, path[1:])
215215
}
216216
return filepath.Clean(path)

0 commit comments

Comments
 (0)