Skip to content

Commit 68e876e

Browse files
committed
Fix cursor position when removing hint
1 parent e3c2c75 commit 68e876e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/src/main/java/com/tokenautocomplete/TokenCompleteTextView.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,7 @@ abstract class TokenCompleteTextView<T: Any> : AppCompatAutoCompleteTextView, On
10961096
internalEditInProgress = true
10971097
text.removeSpan(hint)
10981098
text.replace(sStart, sEnd, "")
1099+
setSelection(sStart)
10991100
internalEditInProgress = false
11001101
}
11011102
}

0 commit comments

Comments
 (0)