diff options
author | Dan Davison <dandavison7@gmail.com> | 2019-07-19 10:53:44 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2019-07-20 18:09:35 -0400 |
commit | dc0318f2947536e33eb1a77a9cc8a612fd39d1cd (patch) | |
tree | fe7efd11f77371972c461a3f15f54c57d373dd14 /src/paint.rs | |
parent | 1374863f71d00371c45fa6a3cef39fbbbeab7fcf (diff) |
Parameterize edit inference function over abstract operation tags
This remains tightly coupled to syntect's data structure, i.e.
[(Style, &str), ...]
but removes any explicit mention of styles in the edit module.
Diffstat (limited to 'src/paint.rs')
-rw-r--r-- | src/paint.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/paint.rs b/src/paint.rs index 68ca79c6..9ba5e418 100644 --- a/src/paint.rs +++ b/src/paint.rs @@ -121,7 +121,7 @@ impl<'a> Painter<'a> { Vec<Vec<(StyleModifier, String)>>, ) { if self.minus_lines.len() == self.plus_lines.len() { - edits::get_diff_style_sections( + edits::infer_edit_sections( &self.minus_lines, &self.plus_lines, self.config.minus_style_modifier, |