1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Merge pull request #608 from Seanstoppable/fixgitordering

Fix git ordering
This commit is contained in:
Chris Cummer
2019-09-06 03:50:21 -07:00
committed by GitHub

View File

@@ -3,7 +3,6 @@ package git
import (
"io/ioutil"
"log"
"sort"
"strings"
"github.com/gdamore/tcell"
@@ -79,9 +78,6 @@ func (widget *Widget) Refresh() {
repoPaths := utils.ToStrs(widget.settings.repositories)
widget.GitRepos = widget.gitRepos(repoPaths)
sort.Slice(widget.GitRepos, func(i, j int) bool {
return widget.GitRepos[i].Path < widget.GitRepos[j].Path
})
widget.display()
}