Merge pull request #6 from Lompik/fixpaste

don't call screen.in_bracketed_paste_mode, it is a property
This commit is contained in:
Kovid Goyal 2017-01-07 16:30:36 +05:30 committed by GitHub
commit a7e2fa570f

View File

@ -269,7 +269,7 @@ class Window:
if text and not self.destroyed:
if isinstance(text, str):
text = text.encode('utf-8')
if self.screen.in_bracketed_paste_mode():
if self.screen.in_bracketed_paste_mode:
text = BRACKETED_PASTE_START.encode('ascii') + text + BRACKETED_PASTE_END.encode('ascii')
self.write_to_child(text)