Sort path completions
This commit is contained in:
parent
d2a18e267c
commit
043a02d99d
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue