Index: app/src/processing/app/syntax/InputMethodSupport.java =================================================================== --- app/src/processing/app/syntax/InputMethodSupport.java (revision 6052) +++ app/src/processing/app/syntax/InputMethodSupport.java (working copy) @@ -75,7 +75,7 @@ if (isComposing) { isComposing = false; } - return textArea.getCaretPosition(); + return textArea.getCaretPosition() * -1; } public AttributedCharacterIterator getCommittedText(int beginIndex,