Make x stay as before when moving lines. This is so it's easier to read tables.
This commit is contained in:
parent
da216c5e77
commit
9fae16caf6
@ -18,7 +18,7 @@ def getPrevLine(currX,currY, currText):
|
|||||||
y -= 1
|
y -= 1
|
||||||
else:
|
else:
|
||||||
endOfScreen = True
|
endOfScreen = True
|
||||||
x = 0
|
x = currX
|
||||||
currLine = ''
|
currLine = ''
|
||||||
if not endOfScreen:
|
if not endOfScreen:
|
||||||
currLine = wrappedLines[y]
|
currLine = wrappedLines[y]
|
||||||
@ -45,7 +45,7 @@ def getNextLine(currX,currY, currText):
|
|||||||
y += 1
|
y += 1
|
||||||
else:
|
else:
|
||||||
endOfScreen = True
|
endOfScreen = True
|
||||||
x = 0
|
x = currX
|
||||||
currLine = ''
|
currLine = ''
|
||||||
if not endOfScreen:
|
if not endOfScreen:
|
||||||
currLine = wrappedLines[y]
|
currLine = wrappedLines[y]
|
||||||
|
Loading…
Reference in New Issue
Block a user