improve trigger

This commit is contained in:
chrys 2016-10-18 15:32:07 +02:00
parent fc0eec157f
commit b144ec06a7

View File

@ -25,7 +25,7 @@ class command():
# its a cursor movement (experimental) - maybe also check current shortcut string?
if abs(self.env['screenData']['newCursor']['x'] - self.env['screenData']['oldCursor']['x']) >= 1:
if len(self.env['screenData']['newDelta']) <= 2:
if len(self.env['screenData']['newDelta'].strip(' \n\t')) <= 2:
return
self.env['runtime']['outputManager'].presentText(self.env['screenData']['newDelta'], interrupt=False)