From 2c0e6907db6945911a16003e63b87c33c6e1519a Mon Sep 17 00:00:00 2001 From: chrys Date: Sat, 22 Oct 2016 03:27:18 +0200 Subject: [PATCH] try to fix race while echo and delete_echo --- src/fenrir/commands/onInput/50000-char_echo.py | 2 -- src/fenrir/commands/onInput/65000-char_delete_echo.py | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/fenrir/commands/onInput/50000-char_echo.py b/src/fenrir/commands/onInput/50000-char_echo.py index 528b6530..ef87a463 100644 --- a/src/fenrir/commands/onInput/50000-char_echo.py +++ b/src/fenrir/commands/onInput/50000-char_echo.py @@ -22,8 +22,6 @@ class command(): # detect deletion or chilling if self.env['screenData']['newCursor']['x'] <= self.env['screenData']['oldCursor']['x']: return - if self.env['runtime']['inputManager'].noKeyPressed(): - return # is there any change? if self.env['screenData']['newDelta'] == '': return diff --git a/src/fenrir/commands/onInput/65000-char_delete_echo.py b/src/fenrir/commands/onInput/65000-char_delete_echo.py index 1c3dc591..221f490f 100644 --- a/src/fenrir/commands/onInput/65000-char_delete_echo.py +++ b/src/fenrir/commands/onInput/65000-char_delete_echo.py @@ -27,9 +27,7 @@ class command(): # More than just a deletion happend if self.env['screenData']['newDelta'].strip() != '': if self.env['screenData']['newDelta'] != self.env['screenData']['oldDelta']: - return - if self.env['runtime']['inputManager'].noKeyPressed(): - return + return # No deletion if self.env['screenData']['newNegativeDelta'] == '': return