From a0fb0e4cd0f59324a595fcdf9a676dfc54b11e53 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Thu, 17 Dec 2020 10:28:51 -0500 Subject: [PATCH] Fix a case where file listings could jitter --- ui/stash.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/stash.go b/ui/stash.go index 8737bf7..90f2663 100644 --- a/ui/stash.go +++ b/ui/stash.go @@ -385,7 +385,7 @@ func (m stashModel) getMarkdownByType(types ...DocType) []*markdown { } } - sort.Sort(markdownsByLocalFirst(agg)) + sort.Stable(markdownsByLocalFirst(agg)) return agg }