Skip to content

Commit

Permalink
Oops, I think I overlooked something in nvaccess#5410.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkager committed Nov 25, 2015
1 parent 71df5f5 commit 0ca49f1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/braille.py
Expand Up @@ -499,10 +499,9 @@ def update(self):
# Mark the selection.
self.brailleSelectionStart = self.rawToBraillePos[self.selectionStart]
if self.selectionEnd >= len(self.rawText):
brailleSelectionEnd = len(self.brailleCells)
self.brailleSelectionEnd = len(self.brailleCells)
else:
brailleSelectionEnd = self.rawToBraillePos[self.selectionEnd]
self.brailleSelectionEnd = self.rawToBraillePos[brailleSelectionEnd]
self.brailleSelectionEnd = self.rawToBraillePos[self.selectionEnd]
for pos in xrange(self.brailleSelectionStart, self.brailleSelectionEnd):
self.brailleCells[pos] |= SELECTION_SHAPE
except IndexError:
Expand Down

0 comments on commit 0ca49f1

Please sign in to comment.