| Summary: | Custom autocorrection: Cursor does not jump to end of replaced string | ||
|---|---|---|---|
| Product: | [Applications] kmail2 | Reporter: | Florian <floeschie> |
| Component: | composer | Assignee: | kdepim bugs <pim-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | montel |
| Priority: | NOR | ||
| Version First Reported In: | 4.13.3 | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | http://commits.kde.org/kdepim/03976b194607517be2e3265156678e555c11f556 | Version Fixed/Implemented In: | 4.14.1 |
| Sentry Crash Report: | |||
| Attachments: | Animated demo of the problem | ||
Created attachment 88483 [details]
Animated demo of the problem
Thanks for demo. I will investigate it. Regards Git commit 03976b194607517be2e3265156678e555c11f556 by Montel Laurent. Committed on 04/09/2014 at 17:43. Pushed by mlaurent into branch 'KDE/4.14'. Fix Bug 338645 - Custom autocorrection: Cursor does not jump to end of replaced string FIXED-IN: 4.14.1 M +13 -6 pimcommon/autocorrection/autocorrection.cpp M +1 -1 pimcommon/autocorrection/autocorrection.h http://commits.kde.org/kdepim/03976b194607517be2e3265156678e555c11f556 I create new unit test for test all autocorrection features. Now it will more easy to test it :) |
In German language "mfg" is a shortcut for "Mit freundlichen Grüßen" - a common way to end E-mails and letters. I added this as a custom word replacement entry for the German language (mfg → Mit freundlichen Grüßen). When I type "mfg<enter>", mfg gets replaced as expected, but cursor jumps to the end of the first word ("Mit"). The rest of the replaced string is then shown in a new line due to the <enter>. Reproducible: Always Steps to Reproduce: 1. Setup the word replacement as described 2. Create new E-mail 3. enter "mfg" and hit enter Actual Results: Mit <cursor>freundlichen Grüßen Expected Results: Mit freundlichen Grüßen <cursor> Probably another bug: Word replacements do not work anymore if you switch identity while composing a message. $ uname -a Linux mycomputer 3.13.0-34-generic #60-Ubuntu SMP Wed Aug 13 15:45:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux