Dont send on_text events with empty text

This commit is contained in:
Kovid Goyal 2018-06-16 08:55:10 +05:30
parent 5bc8d05f0a
commit e8f7a2b345
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -235,7 +235,7 @@ def _on_text(self, text):
self.handler.on_eot()
else:
self.handler.on_text(chunk, self.in_bracketed_paste)
else:
elif chunk:
self.handler.on_text(chunk, self.in_bracketed_paste)
def _on_dcs(self, dcs):