diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-12-07 00:26:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-07 00:26:40 +0000 |
commit | f83f53f9d3188b657d0659c264eef5cd327c05bc (patch) | |
tree | 2adb48f984c46f1a7c9ed39313d6f12c8c9d826d | |
parent | 1a5959a6d3883801bea5d079bd6a51c03ad4fc7b (diff) |
Reset highlighter after painting hunk header (#435)
Fixes #281
-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 bbb7a9ce..94b72650 100644 --- a/src/delta.rs +++ b/src/delta.rs @@ -147,6 +147,7 @@ where painter.set_highlighter(); painter.emit()?; handle_hunk_header_line(&mut painter, &line, &raw_line, &plus_file, config)?; + painter.set_highlighter(); continue; } else if source == Source::DiffUnified && line.starts_with("Only in ") || line.starts_with("Submodule ") |