Update linux.py

This commit is contained in:
chrys87 2016-07-19 13:38:58 +02:00 committed by GitHub
parent 05f254e823
commit 77b3228b0e

View File

@ -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(' ')))