Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4c82c1c authored by satok's avatar satok
Browse files

Not to add invalid spell check spans

Bug: 6464197

Change-Id: I6e9d359847b200e2afae61f85eb7cfe7f179b888
parent 3b5fdf51
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -611,6 +611,9 @@ public class SpellChecker implements SpellCheckerSessionListener {
                    if (spellCheckEnd < start) {
                        break;
                    }
                    if (spellCheckEnd <= spellCheckStart) {
                        break;
                    }
                    if (createSpellCheckSpan) {
                        addSpellCheckSpan(editable, spellCheckStart, spellCheckEnd);
                    }