From 142f06357f464eb115c0ed13a254aa88dc6d52b3 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sun, 16 Jul 2023 20:06:52 +1000 Subject: [PATCH] Fix filtering logic in worktrees view --- pkg/gui/context/worktrees_context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/gui/context/worktrees_context.go b/pkg/gui/context/worktrees_context.go index ff3b833b5..aa1dcd4a1 100644 --- a/pkg/gui/context/worktrees_context.go +++ b/pkg/gui/context/worktrees_context.go @@ -23,7 +23,7 @@ func NewWorktreesContext(c *ContextCommon) *WorktreesContext { getDisplayStrings := func(startIdx int, length int) [][]string { return presentation.GetWorktreeDisplayStrings( - c.Model().Worktrees, + viewModel.GetFilteredList(), c.Git().Worktree.IsCurrentWorktree, c.Git().Worktree.IsWorktreePathMissing, )