From e000228d06bb3d8fb1298ada049c1e46af9507d8 Mon Sep 17 00:00:00 2001 From: rsteube Date: Wed, 20 Dec 2023 20:25:39 +0100 Subject: [PATCH] tmp --- internalActions.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internalActions.go b/internalActions.go index fa89cfb31..044cde0d0 100644 --- a/internalActions.go +++ b/internalActions.go @@ -15,7 +15,8 @@ import ( func actionPath(fileSuffixes []string, dirOnly bool) Action { return ActionCallback(func(c Context) Action { - panic(c.Value) + c.Value = filepath.ToSlash(c.Value) + if len(c.Value) == 2 && util.HasVolumePrefix(c.Value) { // TODO should be fixed in Abs or wherever this is happening return ActionValues(c.Value + "/") // prevent `C:` -> `C:.`