From 9fae16caf6ccc0c308ed315dce2bb994029ac502 Mon Sep 17 00:00:00 2001 From: Michael Taboada Date: Sat, 7 Aug 2021 00:32:07 -0700 Subject: [PATCH] Make x stay as before when moving lines. This is so it's easier to read tables. --- src/fenrirscreenreader/utils/line_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenrirscreenreader/utils/line_utils.py b/src/fenrirscreenreader/utils/line_utils.py index a4532fbb..d13d3a44 100644 --- a/src/fenrirscreenreader/utils/line_utils.py +++ b/src/fenrirscreenreader/utils/line_utils.py @@ -18,7 +18,7 @@ def getPrevLine(currX,currY, currText): y -= 1 else: endOfScreen = True - x = 0 + x = currX currLine = '' if not endOfScreen: currLine = wrappedLines[y] @@ -45,7 +45,7 @@ def getNextLine(currX,currY, currText): y += 1 else: endOfScreen = True - x = 0 + x = currX currLine = '' if not endOfScreen: currLine = wrappedLines[y]