Moving word boundaries backwards fails when there is a text node starting with an...
[WebKit-https.git] / Source / WebCore / editing / VisibleUnits.cpp
index 17c2b335368898d713e4f2324da9d6bb3dd7de93..c27cf451781234f35e66fab961695496df3704a5 100644 (file)
@@ -499,7 +499,7 @@ static VisiblePosition previousBoundary(const VisiblePosition& c, BoundarySearch
             string.prepend(iteratorString.characters(), iteratorString.length());
         }
         next = searchFunction(string.data(), string.size(), string.size() - suffixLength, MayHaveMoreContext, needMoreContext);
-        if (next)
+        if (next > 1) // FIXME: This is a work around for https://webkit.org/b/115070. We need to provide more contexts in general case.
             break;
         it.advance();
     }