Utility method to truncate formatted lines to specified width

This commit is contained in:
Kovid Goyal
2018-04-25 19:34:04 +05:30
parent 61a2360df5
commit 0be0963dc7
4 changed files with 79 additions and 15 deletions

View File

@@ -80,7 +80,7 @@ class DiffHandler(Handler):
else:
text = self.diff_lines[lpos].text
self.write(text)
self.write('\n\r')
self.write('\x1b[0m\n\r')
def on_key(self, key_event):
if self.state is INITIALIZING: