diff kitten: Fix directory diffing with removed binary files failing

Fixes #2378
This commit is contained in:
Kovid Goyal 2020-02-19 19:53:19 +05:30
parent 1ad802b194
commit d6d01102fe
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 1 deletions

View File

@ -35,6 +35,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
- Fix border/margin/padding sizes not being recalculated on DPI change
(:iss:`2346`)
- diff kitten: Fix directory diffing with removed binary files failing
(:iss:`2378`)
- macOS: Fix menubar title not updating on OS Window focus change (:iss:`2350`)
- Fix rendering of combining characters with fonts that have glyphs for

View File

@ -134,7 +134,7 @@ def raw_data_for_path(path):
def is_image(path):
return mime_type_for_path(path).startswith('image/')
return mime_type_for_path(path).startswith('image/') if path else False
@lru_cache(maxsize=1024)