From cc2768a6147b8eba47778d294d90c20a2532f3bf Mon Sep 17 00:00:00 2001 From: chrys Date: Sat, 25 Feb 2017 16:17:55 +0100 Subject: [PATCH] improve vim/emacs --- src/fenrir/commands/onScreenUpdate/70000-incoming.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fenrir/commands/onScreenUpdate/70000-incoming.py b/src/fenrir/commands/onScreenUpdate/70000-incoming.py index fe941a39..83dc00fc 100644 --- a/src/fenrir/commands/onScreenUpdate/70000-incoming.py +++ b/src/fenrir/commands/onScreenUpdate/70000-incoming.py @@ -27,7 +27,9 @@ class command(): if abs(self.env['screenData']['newCursor']['x'] - self.env['screenData']['oldCursor']['x']) >= 1: if len(self.env['screenData']['newDelta'].strip(' \n\t')) <= 2: return - + if abs(self.env['screenData']['newCursor']['y'] - self.env['screenData']['oldCursor']['y']) == 1: + return + self.env['runtime']['outputManager'].presentText(self.env['screenData']['newDelta'], interrupt=False) def setCallback(self, callback):