Update linux.py

This commit is contained in:
chrys87 2016-07-19 13:42:54 +02:00 committed by GitHub
parent 77b3228b0e
commit dd45b60ec8

View File

@ -67,7 +67,7 @@ class screen():
environment['screenData']['newDelta'] = environment['screenData']['newContentText']
else:
diffStart = 0
lastLine = len(environment['screenData']['newDelta']) - environment['screenData']['columns']
lastLine = len(environment['screenData']['newDelta']) - environment['screenData']['columns'] -1
if environment['screenData']['newDelta'][:lastLine] == environment['screenData']['oldDelta'][:lastLine]:
diffStart = lastLine + 1
diff = difflib.ndiff(" ".join(environment['screenData']['oldContentText'][diffStart:].split(' ')),\