@@ -4739,10 +4739,16 @@ composedTextStart = composedTextEnd = null; composedTextAttribute = null; composedTextContent = null; } + if (e.getReplaceStart() >= 0) { + try { + doc.remove(e.getReplaceStart(), e.getReplaceEnd() - e.getReplaceStart()); + } catch (BadLocationException e1) {} + } + if (text != null) { text.first(); int committedTextStartIndex = 0; int committedTextEndIndex = 0;