Fix rendering of binary files

This commit is contained in:
Kovid Goyal 2018-05-09 08:17:52 +05:30
parent a65c807a4a
commit b663160bc2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -151,9 +151,10 @@ def fl(path, fmt):
yield filler + fl(other_path, added_format)
elif other_path is None:
filler = render_diff_line('', '', 'filler', margin_size, available_cols)
yield fl(other_path, added_format) + filler
yield fl(path, removed_format) + filler
else:
yield fl(path, removed_format) + fl(other_path, added_format)
yield ''
def split_to_size(line, width):