Skip to content

Commit

Permalink
Merge pull request #264 from Zailer43/fixDebugCrashWithTextField
Browse files Browse the repository at this point in the history
Fix crash in developing when using ctrl+delete in a TextField
  • Loading branch information
gliscowo authored Jul 28, 2024
2 parents 673255d + 840d468 commit ee41df9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ private void iProvideUsefulSeparators(int wordOffset, int cursorPosition, boolea
if (forward) {
cursorPosition++;
while (cursorPosition < this.text.length() && owo$isWordChar(this.text.charAt(cursorPosition))) cursorPosition++;
} else {
} else if (cursorPosition > 0) {
cursorPosition--;
while (cursorPosition > 0 && owo$isWordChar(this.text.charAt(cursorPosition - 1))) cursorPosition--;
}
Expand Down

0 comments on commit ee41df9

Please sign in to comment.