From 043a02d99d93441021788891d3f86c6fdeea22f0 Mon Sep 17 00:00:00 2001 From: Jeffas Date: Fri, 20 Sep 2019 17:38:09 +0100 Subject: Sort path completions --- commands/util.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'commands/util.go') diff --git a/commands/util.go b/commands/util.go index 81d2da6..a5c30af 100644 --- a/commands/util.go +++ b/commands/util.go @@ -6,6 +6,7 @@ import ( "os" "os/exec" "path/filepath" + "sort" "strings" "time" @@ -94,6 +95,7 @@ func CompletePath(path string) []string { } } + sort.Strings(matches) return matches } @@ -108,6 +110,7 @@ func CompletePath(path string) []string { files[i] = f } + sort.Strings(files) return files } -- cgit 1.4.1-2-gfad0