From 19b976a8ed78c4f92fffc604a8ad3f968c9e2379 Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Mon, 28 Mar 2022 18:03:28 -0700 Subject: [PATCH] windows: Fixed infinite loop in GetCueModParent Signed-off-by: Sam Alba --- pkg/pkg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/pkg.go b/pkg/pkg.go index 829f334b..370a7d7f 100644 --- a/pkg/pkg.go +++ b/pkg/pkg.go @@ -167,7 +167,7 @@ func GetCueModParent() (string, bool) { parentDir = filepath.Dir(parentDir) - if parentDir == string(os.PathSeparator) { + if parentDir == fmt.Sprintf("%s%s", filepath.VolumeName(parentDir), string(os.PathSeparator)) { // reached the root parentDir = cwd // reset to working directory break