find next char logic
This commit is contained in:
parent
5ee7874d13
commit
1b29d24b0a
@ -8,6 +8,12 @@ class command():
|
|||||||
if environment['screenData']['newCursorReview']['y'] == -1:
|
if environment['screenData']['newCursorReview']['y'] == -1:
|
||||||
environment['screenData']['newCursorReview'] = environment['screenData']['newCursor'].copy()
|
environment['screenData']['newCursorReview'] = environment['screenData']['newCursor'].copy()
|
||||||
wrappedLines = environment['screenData']['newContentText'].split('\n')
|
wrappedLines = environment['screenData']['newContentText'].split('\n')
|
||||||
|
if environment['screenData']['newCursorReview']['x'] + 1 = len(wrappedLines[environment['screenData']['newCursorReview']['y']):
|
||||||
|
if environment['screenData']['newCursorReview']['y'] +1 < len(wrappedLines) - 1:
|
||||||
|
environment['screenData']['newCursorReview']['y'] += 1
|
||||||
|
environment['screenData']['newCursorReview']['x'] = 0
|
||||||
|
else:
|
||||||
|
environment['screenData']['newCursorReview']['x'] += 1
|
||||||
if wrappedLines[environment['screenData']['newCursorReview']['y']][environment['screenData']['newCursorReview']['x']].strip(" \t\n") == '':
|
if wrappedLines[environment['screenData']['newCursorReview']['y']][environment['screenData']['newCursorReview']['x']].strip(" \t\n") == '':
|
||||||
environment['runtime']['outputManager'].presentText(environment, "blank")
|
environment['runtime']['outputManager'].presentText(environment, "blank")
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user