You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "", line 1, in
File "D:\nvda\main\source\winConsoleHandler.py", line 186, in calculateNewText
if text[pos]!=diffLines[lineNum-1][2:][pos]:
IndexError: string index out of range
The text was updated successfully, but these errors were encountered:
Comment 1 by jteh on 2010-06-25 00:20
Simpler way to reproduce:
calculateNewText([["a"]("aa"],))
While i agree this needs to be fixed if we want to use this code anywhere else, it isn't a problem for consoles because lines always have the same length (padded with spaces). Therefore, it isn't a bug that should show up in normal use of NVDA. Unless there's a use case I'm missing...?
Changes:
Milestone changed from 2010.2 to None
Comment 2 by jteh on 2010-11-09 03:14
As part of the displayModelNewText branch, I'm refactoring this code so we can use it in multiple places. I've fixed this bug in the new code.
Changes:
Milestone changed from None to 2011.1
Comment 4 by jteh on 2010-11-10 18:33
Fixed with the new !LiveText behavior in 6b0fdbe.
Changes:
Changed title from "winConsoleHandler.calculateNewText fails in special cirnstumstance" to "winConsoleHandler.calculateNewText fails when comparing lines with different lengths"
State: closed
Reported by aleksey_s on 2010-06-24 13:52
Traceback (most recent call last):
File "", line 1, in
File "D:\nvda\main\source\winConsoleHandler.py", line 186, in calculateNewText
if text[pos]!=diffLines[lineNum-1][2:][pos]:
IndexError: string index out of range
The text was updated successfully, but these errors were encountered: