1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-29 22:48:24 +02:00

Get rid of the retain-sort-order-when-filtering logic again

For die-hard fuzzy-searching fans it's probably in the way, so taking it out
makes fuzzy filtering work better. For substring filtering it always retains the
sort order anyway.
This commit is contained in:
Stefan Haller
2024-03-17 12:11:24 +01:00
parent 7d2163d632
commit 4f2bebe453
11 changed files with 13 additions and 29 deletions

View File

@@ -19,7 +19,6 @@ func NewWorktreesContext(c *ContextCommon) *WorktreesContext {
func(Worktree *models.Worktree) []string {
return []string{Worktree.Name}
},
nil,
)
getDisplayStrings := func(_ int, _ int) [][]string {