fix char review (last line was not navigateable)

This commit is contained in:
chrys 2018-06-04 13:31:22 +02:00
parent 01437a07d2
commit 42a668753b
2 changed files with 6 additions and 6 deletions

View File

@ -5,15 +5,14 @@ Known Bugs (Problems with the logic ):
[] X is not being autodetected. (critical)
[W] After switching back from X sometimes modifier keys are stuck. ( control or alt) (critical)
[] PTY attribtues not all available at beginning just to current curser (normal)
[] review can run out of screen in PTY pressing next char (normal)
[W] Hilight Tracking not accurate (normal)
[W] make PTY better react to shortcuts when a lot of output apears (normal)
[] Numlock/ Capslock is sometimes out of Sync (normal)
[X] Bash history does not work with PTY (reads hole line) (normal)
[X] space has different attributes on VCSA (normal)
[X] review can run out of screen in PTY pressing next char (normal)
Glitches (improve diff results):
- currently None
[W] Hilight Tracking not accurate (normal)
[W] make PTY better react to shortcuts when a lot of output apears (normal)
wishes:
- whole status line in irssi is spoken insteed of just the changes (lilmike)

View File

@ -86,7 +86,7 @@ def getNextChar(currX,currY, currText):
x = currX
y = currY
if x + 1 == len(wrappedLines[y]):
if y + 1 < len(wrappedLines) - 1:
if y + 1 <= len(wrappedLines) - 1:
y += 1
x = 0
lineBreak = True
@ -97,7 +97,8 @@ def getNextChar(currX,currY, currText):
x += 1
currChar = ''
if not endOfScreen:
currChar = wrappedLines[y][x]
currChar = wrappedLines[y][x]
return x, y, currChar, endOfScreen, lineBreak
def getPhonetic(currChar):