speedup checks
This commit is contained in:
parent
79166454c1
commit
e0428fa102
@ -7,7 +7,7 @@ class command():
|
|||||||
if environment['screenData']['newCursor']['y'] != environment['screenData']['oldCursor']['y'] or\
|
if environment['screenData']['newCursor']['y'] != environment['screenData']['oldCursor']['y'] or\
|
||||||
environment['screenData']['newCursor']['x'] == environment['screenData']['oldCursor']['x']:
|
environment['screenData']['newCursor']['x'] == environment['screenData']['oldCursor']['x']:
|
||||||
return environment
|
return environment
|
||||||
if environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']][environment['screenData']['newCursor']['x']].replace(" ","").replace("\n","").replace("\t","") == '':
|
if environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']][environment['screenData']['newCursor']['x']].strip(" \n\t") == '':
|
||||||
pass
|
pass
|
||||||
#environment['runtime']['outputManager'].presentText(environment, "blank",True)
|
#environment['runtime']['outputManager'].presentText(environment, "blank",True)
|
||||||
else:
|
else:
|
||||||
|
@ -8,7 +8,7 @@ class command():
|
|||||||
# return environment
|
# return environment
|
||||||
if environment['screenData']['newCursor']['y'] == environment['screenData']['oldCursor']['y']:
|
if environment['screenData']['newCursor']['y'] == environment['screenData']['oldCursor']['y']:
|
||||||
return environment
|
return environment
|
||||||
if environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']].replace(" ","").replace("\n","").replace("\t","") == '':
|
if environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']].strip(" \t\n") == '':
|
||||||
environment['runtime']['outputManager'].presentText(environment, "blank", True)
|
environment['runtime']['outputManager'].presentText(environment, "blank", True)
|
||||||
else:
|
else:
|
||||||
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']], True)
|
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']], True)
|
||||||
|
Loading…
Reference in New Issue
Block a user