Update linux.py
This commit is contained in:
parent
05f254e823
commit
77b3228b0e
@ -68,7 +68,7 @@ class screen():
|
|||||||
else:
|
else:
|
||||||
diffStart = 0
|
diffStart = 0
|
||||||
lastLine = len(environment['screenData']['newDelta']) - environment['screenData']['columns']
|
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
|
diffStart = lastLine + 1
|
||||||
diff = difflib.ndiff(" ".join(environment['screenData']['oldContentText'][diffStart:].split(' ')),\
|
diff = difflib.ndiff(" ".join(environment['screenData']['oldContentText'][diffStart:].split(' ')),\
|
||||||
" ".join(environment['screenData']['newContentText'][diffStart:].split(' ')))
|
" ".join(environment['screenData']['newContentText'][diffStart:].split(' ')))
|
||||||
|
Loading…
Reference in New Issue
Block a user