Index: src/orca/Gecko.py
===================================================================
--- src/orca/Gecko.py	(revision 2287)
+++ src/orca/Gecko.py	(working copy)
@@ -3955,7 +3955,7 @@
                 if not self.onSameLine(extents, lineExtents):
                     if not crossedLineBoundary:
                         lineExtents = extents
-                        if currentChar != "\n":
+                        if currentChar != "\n" and extents[1] >= 0:
                             crossedLineBoundary = True
                         elif previousChar == "\n":
                             crossedLineBoundary = True
@@ -4058,7 +4058,7 @@
                 if not self.onSameLine(extents, lineExtents):
                     if not crossedLineBoundary:
                         lineExtents = extents
-                        if currentChar != "\n":
+                        if currentChar != "\n" and extents[1] >= 0:
                             crossedLineBoundary = True
                         elif previousChar == "\n":
                             crossedLineBoundary = True
