summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2021-12-05 17:47:30 -0500
committerDan Davison <dandavison7@gmail.com>2021-12-05 19:27:40 -0500
commit3ec93061822301024041b383db571cb9d6c9a49d (patch)
treeca50f468546985969cd28e8816ef2c7a24816b11 /src/config.rs
parente7456d4e2884afa420b329d61a0c9b8dfc3f915a (diff)
Gracefully handle failure to parse hunk header
Fixes #765
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs
index b9f14643..7fb54db9 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -154,7 +154,7 @@ impl Config {
State::HunkPlus(_, _) => &self.plus_style,
State::CommitMeta => &self.commit_style,
State::DiffHeader(_) => &self.file_style,
- State::HunkHeader(_, _, _) => &self.hunk_header_style,
+ State::HunkHeader(_, _, _, _) => &self.hunk_header_style,
State::SubmoduleLog => &self.file_style,
_ => delta_unreachable("Unreachable code reached in get_style."),
}