From 7e9494c19ff0225cee2b816c0b67ec1dd68c5b89 Mon Sep 17 00:00:00 2001 From: chrys Date: Mon, 25 Sep 2017 21:33:02 +0200 Subject: [PATCH] improve stuff --- src/fenrir/commands/onScreenUpdate/70000-incoming.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenrir/commands/onScreenUpdate/70000-incoming.py b/src/fenrir/commands/onScreenUpdate/70000-incoming.py index 17074a52..1b1ec0d9 100644 --- a/src/fenrir/commands/onScreenUpdate/70000-incoming.py +++ b/src/fenrir/commands/onScreenUpdate/70000-incoming.py @@ -23,8 +23,8 @@ class command(): if not self.env['runtime']['screenManager'].isDelta(): return # this must be a keyecho or something - if len(self.env['screen']['newDelta'].strip(' \n\t')) >= 1: - if abs(self.env['screen']['newCursor']['x'] - self.env['screen']['oldCursor']['x']) > 1: + if len(self.env['screen']['newDelta'].strip(' \n\t')) <= 1: + if abs(self.env['screen']['newCursor']['x'] - self.env['screen']['oldCursor']['x']) >= 1: # if len(self.env['screen']['newDelta'].strip(' \n\t0123456789')) <= 2: return if abs(self.env['screen']['newCursor']['y'] - self.env['screen']['oldCursor']['y']) == 1: