diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-07-16 20:06:52 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-07-30 18:35:22 +1000 |
commit | 142f06357f464eb115c0ed13a254aa88dc6d52b3 (patch) | |
tree | 0b951173fb5f00b1700559305bc1a17f0fec7bc6 /pkg/gui | |
parent | 18ea68c23a93d3a9a8270290e8f5e1df5e955892 (diff) |
Fix filtering logic in worktrees view
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/context/worktrees_context.go | 2 |
1 files changed, 1 insertions, 1 deletions
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, ) |