From 77b3228b0efb684f2e6b2c1f2eadbfb72efc5ee3 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Tue, 19 Jul 2016 13:38:58 +0200 Subject: [PATCH] Update linux.py --- src/fenrir-package/screen/linux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fenrir-package/screen/linux.py b/src/fenrir-package/screen/linux.py index 9737a622..bc614cc3 100644 --- a/src/fenrir-package/screen/linux.py +++ b/src/fenrir-package/screen/linux.py @@ -68,7 +68,7 @@ class screen(): else: diffStart = 0 lastLine = len(environment['screenData']['newDelta']) - environment['screenData']['columns'] - if environment['screenData']['newDelta'][:lastLine] == environment['screenData']['newDelta'][:lastLine]: + if environment['screenData']['newDelta'][:lastLine] == environment['screenData']['oldDelta'][:lastLine]: diffStart = lastLine + 1 diff = difflib.ndiff(" ".join(environment['screenData']['oldContentText'][diffStart:].split(' ')),\ " ".join(environment['screenData']['newContentText'][diffStart:].split(' ')))