From d984995523105f26bb5612c3ed53e0ef05eb8287 Mon Sep 17 00:00:00 2001 From: rsteube Date: Sun, 13 Oct 2024 19:23:07 +0200 Subject: [PATCH] git: ActionRefRanges - no need for invoke --- pkg/actions/tools/git/ref.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/actions/tools/git/ref.go b/pkg/actions/tools/git/ref.go index 5fa7a3a1cf..45bb2c3729 100644 --- a/pkg/actions/tools/git/ref.go +++ b/pkg/actions/tools/git/ref.go @@ -105,8 +105,7 @@ func ActionRefs(refOption RefOption) carapace.Action { func ActionRefRanges(opts RefOption) carapace.Action { return carapace.ActionCallback(func(c carapace.Context) carapace.Action { if strings.HasPrefix(c.Value, "^") { // negate - c.Value = c.Value[1:] - return ActionRefs(opts).Invoke(c).ToA().NoSpace().Prefix("^") + return ActionRefs(opts).NoSpace().Prefix("^") } delimiter := ".."