From e01d876b34939e5c9ff4b876e5a978fa527352ba Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sat, 10 Jun 2023 11:42:35 +0300 Subject: [PATCH] choose boundary reason based on the previous/next char only QTextBoundaryFinder::boundaryReasons() the start and end of the text were considered as boundaries for compat only Signed-off-by: Ivailo Monev --- src/core/tools/qtextboundaryfinder.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/core/tools/qtextboundaryfinder.cpp b/src/core/tools/qtextboundaryfinder.cpp index ced110f62..0ad724954 100644 --- a/src/core/tools/qtextboundaryfinder.cpp +++ b/src/core/tools/qtextboundaryfinder.cpp @@ -352,10 +352,6 @@ QTextBoundaryFinder::BoundaryReasons QTextBoundaryFinder::boundaryReasons() cons { if (!isAtBoundary()) { return QTextBoundaryFinder::NotAtBoundary; - } else if (d->pos == 0) { - return QTextBoundaryFinder::StartWord; - } else if (d->pos == d->string.size()) { - return QTextBoundaryFinder::EndWord; } QTextBoundaryFinder::BoundaryReasons reasons; -- 2.11.0