Apply default colors in diff kitten

This commit is contained in:
Kovid Goyal
2018-04-24 10:33:18 +05:30
parent fe5b8f3aec
commit 5c4b14468c
4 changed files with 18 additions and 9 deletions

View File

@@ -376,8 +376,12 @@ class Loop:
self.return_code = 1
keep_going = False
finalize_output = b''.join(handler.write_buf).decode('utf-8')
if tb is not None:
self._report_error_loop(tb, term_manager)
self._report_error_loop(finalize_output + tb, term_manager)
if tb is None:
os.write(self.output_fd, finalize_output.encode('utf-8'))
def _report_error_loop(self, tb, term_manager):
select = self.sel.select