From b144ec06a75e4fa3eada0d3435d0881baefad642 Mon Sep 17 00:00:00 2001 From: chrys Date: Tue, 18 Oct 2016 15:32:07 +0200 Subject: [PATCH] improve trigger --- src/fenrir/commands/onScreenUpdate/70000-incoming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fenrir/commands/onScreenUpdate/70000-incoming.py b/src/fenrir/commands/onScreenUpdate/70000-incoming.py index 189b2c43..fe941a39 100644 --- a/src/fenrir/commands/onScreenUpdate/70000-incoming.py +++ b/src/fenrir/commands/onScreenUpdate/70000-incoming.py @@ -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)