find next char logic

This commit is contained in:
chrys87 2016-07-19 10:15:56 +02:00 committed by GitHub
parent 5ee7874d13
commit 1b29d24b0a

View File

@ -8,6 +8,12 @@ class command():
if environment['screenData']['newCursorReview']['y'] == -1:
environment['screenData']['newCursorReview'] = environment['screenData']['newCursor'].copy()
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") == '':
environment['runtime']['outputManager'].presentText(environment, "blank")
else: