Version: 3.96.00 (using KDE KDE 3.95.0) Installed from: Debian testing/unstable Packages Strange things happen in kwrite when using the character é (e with an accent): Sometimes when trying to write a é somewhere in the first line, the whole line disappears and I am left with only a é Sometimes this doesn't happen, e.g. I manage to get a é at the end of the first line. But when I then try to write an é on the second line, it instead appears at the end of the first line, while the text cursor is on the second line. I have LANG=no_NO.UTF-8 Best regards, Torquil Sørensen
Created attachment 22205 [details] Patch for review 1) I can reprocude this bug in POSIX locale and SVN revision 741752 2) Attaching a proposed patch which fixes the reported issue. The problem used to be that KateViewInternal never realized the first composed input has finished. Therefore, the first "é" is inserted correctly, all following composed characters are inserted at the position of the first as well. I am not too familiar with InputMethod stuff, though, and not sure this is the correct solution. Please review.
Confirming. Note that it's not so much caused by accents, but by composing a character (in this case with a dead accent key, followed by an "e"). Using an fr keyboard layout "é"s can be typed without problems.
*** Bug 153251 has been marked as a duplicate of this bug. ***
Created attachment 22376 [details] Katepart IM method fix I've reviewed the previous patch, and it causes errors when writing in Japanese. This new patch seems to work for both cases, makes more sense to me, and doesn't require accessing the input context (I don't think it should have to). Please test this patch. Thanks, Hamish.
Your patch works fine, here (tested with various dead keys, but only european characters). While you're at it, though, I can still reproduce bug #102366 .
SVN commit 745575 by rodda: Fix IM input positioning and overwriting bugs Reviewed by Thomas Friedrichsmeier (thanks!) BUG:152808 M +28 -13 kateviewinternal.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=745575
*** Bug 151917 has been marked as a duplicate of this bug. ***