Skip to content

Commit 60a7845

Browse files
committed
Don't highlight branch list when filtering
1 parent 86346a8 commit 60a7845

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/GitBrunch.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ appDraw state =
117117
where
118118
padding = str " "
119119
maxWidth w = C.hCenter . hLimit w
120-
toBranchList r lens' = state ^. lens' & drawBranchList (state ^. focusL == r)
120+
toBranchList r lens' =
121+
let isActive = state ^. focusL == r && not (_isEditingFilter state)
122+
in state ^. lens' & drawBranchList isActive
121123
filterEdit = if _isEditingFilter state then drawFilter state else emptyWidget
122124
branchLists = hBox
123125
[ C.hCenter $ toBranchList RLocal localBranchesL

0 commit comments

Comments
 (0)