Skip to content

Commit

Permalink
Fixing delete whole word. Fixes #398 (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines committed Sep 15, 2023
1 parent d2aa007 commit 003e1d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/dessalines/thumbkey/utils/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ fun autoCapitalizeCheck(
}

fun deleteLastWord(ime: IMEService) {
val lastWords = ime.currentInputConnection.getTextBeforeCursor(100, 0)
val lastWords = ime.currentInputConnection.getTextBeforeCursor(9999, 0)

val trailingSpacesLength = lastWords?.length?.minus(lastWords.trimEnd().length) ?: 0
val trimmed = lastWords?.trim()
Expand Down

0 comments on commit 003e1d1

Please sign in to comment.