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

Commit de09576f authored by Gilles Debunne's avatar Gilles Debunne Committed by Android (Google) Code Review
Browse files

Merge "Cursor is moved at end of word when it is added to dictionary"

parents 5e1243e6 2eb70fb2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2582,6 +2582,7 @@ public class Editor {
                // There is no way to know if the word was indeed added. Re-check.
                // TODO The ExtractEditText should remove the span in the original text instead
                editable.removeSpan(suggestionInfo.suggestionSpan);
                Selection.setSelection(editable, spanEnd);
                updateSpellCheckSpans(spanStart, spanEnd, false);
            } else {
                // SuggestionSpans are removed by replace: save them before