diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-07-27 22:34:38 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-07-27 22:35:12 -0400 |
commit | c5733826b988fe54fbc0298512e222ba057df3bc (patch) | |
tree | 72d9302de25500d843d47dbe63f8e6d9dd93d8be /src/delta.rs | |
parent | 6e8ef8977e159bb05c9b1b4192fa641f2ca3034f (diff) |
Paint buffered minus and plus lines before handling hunk header
Fixes #263
Diffstat (limited to 'src/delta.rs')
-rw-r--r-- | src/delta.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/delta.rs b/src/delta.rs index 0df63afc..fa36f016 100644 --- a/src/delta.rs +++ b/src/delta.rs @@ -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) { |