[orca] Adjust character-boundary hack



commit 42e54bd45b3524fe238e5ab5c28954fdbc728c74
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Jan 24 15:01:27 2018 -0500

    Adjust character-boundary hack
    
    Using the length of the encoded string results in our skipping over
    characters.

 src/orca/scripts/web/script_utilities.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index a4ccfb6..27dc182 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -885,7 +885,7 @@ class Utilities(script_utilities.Utilities):
         allText = text.getText(0, -1)
         if boundary == pyatspi.TEXT_BOUNDARY_CHAR:
             string = allText[offset]
-            return string, offset, offset + len(string.encode())
+            return string, offset, offset + 1
 
         extents = list(text.getRangeExtents(offset, offset + 1, 0))
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]