From 8c7dfd8c5dfc950337d10964ea711d0820943dbe Mon Sep 17 00:00:00 2001 From: chrys Date: Fri, 10 Nov 2017 23:05:58 +0100 Subject: [PATCH] remove debug --- src/fenrir/screenDriver/vcsaDriver.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fenrir/screenDriver/vcsaDriver.py b/src/fenrir/screenDriver/vcsaDriver.py index 871ab4b6..d7a8ed6a 100644 --- a/src/fenrir/screenDriver/vcsaDriver.py +++ b/src/fenrir/screenDriver/vcsaDriver.py @@ -355,10 +355,10 @@ class driver(screenDriver): diff = difflib.ndiff(oldScreenText, newScreenText) diffList = list(diff) tempNewDelta = ''.join(x[2:] for x in diffList if x[0] == '+') - print(tempNewDelta, newScreenText[self.env['screen']['oldCursor']['x'] :self.env['screen']['newCursor']['x'] ]) - if tempNewDelta != ''.join(newScreenText[self.env['screen']['oldCursor']['x']:self.env['screen']['newCursor']['x']]): - diffList = [' +' + self.env['screen']['newContentText'].split('\n')[self.env['screen']['newCursor']['y']]] - print(diffList) + + if tempNewDelta != ''.join(newScreenText[self.env['screen']['oldCursor']['x']:self.env['screen']['newCursor']['x']].rstrip()): + diffList = ['+ ' + self.env['screen']['newContentText'].split('\n')[self.env['screen']['newCursor']['y']]] + typing = True else: diff = difflib.ndiff( oldScreenText.split('\n'),\