Skip to content

Commit

Permalink
Remove POSITION_LAST workaround on 21H1 UIA console
Browse files Browse the repository at this point in the history
  • Loading branch information
codeofdusk committed Oct 2, 2020
1 parent dc1a5f4 commit 0852a79
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions source/NVDAObjects/UIA/winConsoleUIA.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,6 @@ def _getBoundingRange(self, obj, position):
if position == textInfos.POSITION_FIRST:
collapseToEnd = False
elif position == textInfos.POSITION_LAST:
# We must pull back the end by one character otherwise when we collapse to end,
# a console bug results in a textRange covering the entire console buffer!
# Strangely the *very* last character is a special blank point
# so we never seem to miss a real character.
_rangeObj.MoveEndpointByUnit(
UIAHandler.TextPatternRangeEndpoint_End,
UIAHandler.NVDAUnitsToUIAUnits['character'],
-1
)
collapseToEnd = True
return (_rangeObj, collapseToEnd)

Expand Down

0 comments on commit 0852a79

Please sign in to comment.