summaryrefslogtreecommitdiffstats
path: root/src/delta.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-02-28 12:15:50 -0600
committerDan Davison <dandavison7@gmail.com>2020-02-28 12:26:41 -0600
commit24a6a4916b3914b3467587731b62f1335813f6e7 (patch)
tree8bda4703576e445c8bc9a2fac7f25b0ea55c61cd /src/delta.rs
parent52074eea076a0758c2590352d12bb161533a34d6 (diff)
Revert fix
A similar fix was added at f6d4d333d5c06f66643622206f384a3410c14c61
Diffstat (limited to 'src/delta.rs')
-rw-r--r--src/delta.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/delta.rs b/src/delta.rs
index 3b3a834a..a180a422 100644
--- a/src/delta.rs
+++ b/src/delta.rs
@@ -89,7 +89,7 @@ where
} else if (state == State::FileMeta || source == Source::DiffUnified)
// FIXME: For unified diff input, removal ("-") of a line starting with "--" (e.g. a
// Haskell or SQL comment) will be confused with the "---" file metadata marker.
- && (line.starts_with("--- ") && line != "--- " || line.starts_with("rename from "))
+ && (line.starts_with("--- ") || line.starts_with("rename from "))
&& config.opt.file_style != cli::SectionStyle::Plain
{
if source == Source::DiffUnified {