[tools] Fixed git_blame not handling binary files.
This commit is contained in:
parent
820b89e676
commit
dec0f5ed29
2 changed files with 4 additions and 3 deletions
4
BUGS
4
BUGS
|
|
@ -6,8 +6,6 @@ Current
|
||||||
the timed out status when un-paused.
|
the timed out status when un-paused.
|
||||||
- Tmp files are being left behind after shutdown.
|
- Tmp files are being left behind after shutdown.
|
||||||
- All tools in AppImages aren't working correctly. See ./vigil --self_test
|
- All tools in AppImages aren't working correctly. See ./vigil --self_test
|
||||||
- Sometimes git_blame produces an error, depending on characters in its
|
|
||||||
input.
|
|
||||||
|
|
||||||
|
|
||||||
Current (tool related)
|
Current (tool related)
|
||||||
|
|
@ -252,6 +250,8 @@ Fixed
|
||||||
cursor line drifts up or down a row.
|
cursor line drifts up or down a row.
|
||||||
- When paging the summary window the cursor line should stay in the same
|
- When paging the summary window the cursor line should stay in the same
|
||||||
place on the screen.
|
place on the screen.
|
||||||
|
- Sometimes git_blame produces an error, depending on characters in its
|
||||||
|
input.
|
||||||
|
|
||||||
|
|
||||||
Won't fix
|
Won't fix
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,8 @@ def _printable(text):
|
||||||
|
|
||||||
|
|
||||||
def _fix_input(input_):
|
def _fix_input(input_):
|
||||||
input_str = input_.decode("utf-8") if isinstance(input_, bytes) else input_
|
input_str = (input_.decode("utf-8", errors="replace")
|
||||||
|
if isinstance(input_, bytes) else input_)
|
||||||
return _printable(input_str).expandtabs(tabsize=4)
|
return _printable(input_str).expandtabs(tabsize=4)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue