Skip to content

Commit

Permalink
Update source/NVDAObjects/window/edit.py
Browse files Browse the repository at this point in the history
Co-authored-by: Leonard de Ruijter <3049216+LeonarddeR@users.noreply.github.com>
  • Loading branch information
seanbudd and LeonarddeR authored May 8, 2024
1 parent a52a911 commit 76f000b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/NVDAObjects/window/edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,8 @@ def updateSelection(self):
self.obj.ITextSelectionObject.end=self._rangeObj.end

def getTextInfoForCodepointMovement(self) -> Self:
# # In PoEdit ITextDocumentTextInfo sometimes cannot access the last character when that character is
# In PoEdit ITextDocumentTextInfo sometimes cannot access the last character when that character is

# a newline. In this case collapse(True) takes us not to the end of textInfo, but right before
# trailing newline character, which causes adverse side effects in moveToCodepointOffset() function.
# Trimming trailing newline character here to work around.
Expand Down

0 comments on commit 76f000b

Please sign in to comment.