Skip to content

Commit

Permalink
Fix header highlight logic, quite literally
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thiel committed Jun 6, 2019
1 parent 9ffacd0 commit 0a266d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/interactive/widgets/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ impl MainWindow {

let bg_color = {
let marked = mark_pane.as_ref().map(|(_, p)| p.marked());
match (marked.map(|m| m.is_empty()), state.focussed) {
(Some(false), FocussedPane::Mark) => Color::LightRed,
(Some(false), _) | (None, _) => COLOR_MARKED_LIGHT,
match (marked.map_or(true, |m| m.is_empty()), state.focussed) {
(false, FocussedPane::Mark) => Color::LightRed,
(false, _) => COLOR_MARKED_LIGHT,
(_, _) => Color::White,
}
};
Expand Down

0 comments on commit 0a266d3

Please sign in to comment.