Skip to content

Commit

Permalink
Paint buffered minus and plus lines before handling hunk header
Browse files Browse the repository at this point in the history
Fixes #263
  • Loading branch information
dandavison committed Jul 28, 2020
1 parent 6e8ef89 commit c573382
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/delta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ where
)?;
}
} else if line.starts_with("@@") {
painter.paint_buffered_minus_and_plus_lines();
state = State::HunkHeader;
painter.set_highlighter();
if should_handle(&state, config) {
Expand Down

0 comments on commit c573382

Please sign in to comment.