From 0cc0b01037ffbbef59b34748b244c568e89269db Mon Sep 17 00:00:00 2001 From: chrys87 Date: Fri, 2 Sep 2016 13:25:50 +0200 Subject: [PATCH] Update linux.py --- src/fenrir-package/screen/linux.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenrir-package/screen/linux.py b/src/fenrir-package/screen/linux.py index 84fa5226..f6350fda 100644 --- a/src/fenrir-package/screen/linux.py +++ b/src/fenrir-package/screen/linux.py @@ -85,8 +85,8 @@ class screen(): environment['screenData']['oldCursor']['y'] == environment['screenData']['newCursor']['y'] and \ environment['screenData']['newContentText'][:environment['screenData']['newCursor']['y']] == environment['screenData']['oldContentText'][:environment['screenData']['newCursor']['y']]: diffStart = environment['screenData']['newCursor']['y'] * environment['screenData']['newCursor']['x'] + environment['screenData']['newCursor']['y'] - diff = difflib.ndiff(environment['screenData']['oldContentText'][diffStart:],\ - environment['screenData']['newContentText'][diffStart:]) + diff = difflib.ndiff(environment['screenData']['oldContentText'][diffStart:diffStart + environment['screenData']['columns']],\ + environment['screenData']['newContentText'][diffStart:diffStart + environment['screenData']['columns']]) else: diff = difflib.ndiff( environment['screenData']['oldContentText'][diffStart:].split('\n'),\ environment['screenData']['newContentText'][diffStart:].split('\n'))