We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13c1a37 commit 74055e8Copy full SHA for 74055e8
diff.go
@@ -2,6 +2,7 @@ package carapace
2
3
import (
4
"fmt"
5
+ "sort"
6
7
"github.com/carapace-sh/carapace/internal/common"
8
"github.com/carapace-sh/carapace/pkg/style"
@@ -50,6 +51,7 @@ func Diff(original, new Action) Action {
50
51
func DiffPatch(original, new Action, c Context) []string {
52
diff := Diff(original, new).Invoke(c)
53
patch := make([]string, 0)
54
+ sort.Sort(common.ByValue(diff.action.rawValues))
55
for _, v := range diff.action.rawValues {
56
s := v.Value
57
if v.Description != "" {
0 commit comments