Update linux.py
This commit is contained in:
parent
0cc0b01037
commit
6de80f1295
@ -84,7 +84,7 @@ class screen():
|
|||||||
if environment['screenData']['oldCursor']['x'] != environment['screenData']['newCursor']['x'] and \
|
if environment['screenData']['oldCursor']['x'] != environment['screenData']['newCursor']['x'] and \
|
||||||
environment['screenData']['oldCursor']['y'] == environment['screenData']['newCursor']['y'] and \
|
environment['screenData']['oldCursor']['y'] == environment['screenData']['newCursor']['y'] and \
|
||||||
environment['screenData']['newContentText'][:environment['screenData']['newCursor']['y']] == environment['screenData']['oldContentText'][:environment['screenData']['newCursor']['y']]:
|
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']
|
diffStart = environment['screenData']['newCursor']['y'] * environment['screenData']['columns'] + environment['screenData']['newCursor']['y']
|
||||||
diff = difflib.ndiff(environment['screenData']['oldContentText'][diffStart:diffStart + environment['screenData']['columns']],\
|
diff = difflib.ndiff(environment['screenData']['oldContentText'][diffStart:diffStart + environment['screenData']['columns']],\
|
||||||
environment['screenData']['newContentText'][diffStart:diffStart + environment['screenData']['columns']])
|
environment['screenData']['newContentText'][diffStart:diffStart + environment['screenData']['columns']])
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user