diff options
Diffstat (limited to 'src/handlers/hunk_header.rs')
-rw-r--r-- | src/handlers/hunk_header.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/handlers/hunk_header.rs b/src/handlers/hunk_header.rs index 1d5d8556..1d10d4fb 100644 --- a/src/handlers/hunk_header.rs +++ b/src/handlers/hunk_header.rs @@ -74,7 +74,11 @@ impl<'a> StateMachine<'a> { &line_numbers, &mut self.painter, line, - &self.plus_file, + if self.plus_file == "/dev/null" { + &self.minus_file + } else { + &self.plus_file + }, self.config, )?; }; |