Bug 462437

Summary: non english characters works wrong with "e" motion
Product: [Applications] kate Reporter: sotero <granard_gotlo>
Component: Vi Input ModeAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph
Priority: NOR    
Version First Reported In: 22.04.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description sotero 2022-11-30 12:42:18 UTC
SUMMARY
Vi command for motion "e" (To end of word) works wrong with "non english" characters; I have tested czech letters (éíá...) and german letter ü.


STEPS TO REPRODUCE
1. word containing "non english" characters eg. "nahrávání"
2. put cursor at the beginning of the word
3. in Vi Normal mode type "e" (motion command To end of word)

OBSERVED RESULT
Cursor jumps to letter "r"

EXPECTED RESULT
Cursor should jump to the end of the word (the letter "í")

SOFTWARE/OS VERSIONS
Xubuntu 22.04 LTS (with ppa:kubuntu-ppa/backports)
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.3 (built against 5.15.3)
Comment 1 Christoph Cullmann 2024-02-18 20:16:46 UTC
True, seems to be borked.
Comment 2 Christoph Cullmann 2024-02-18 20:39:44 UTC
Git commit bf08a9a6faf35ca2f6c69a9f64b545e0e7129436 by Christoph Cullmann.
Committed on 18/02/2024 at 20:39.
Pushed by cullmann into branch 'master'.

ensure we support unicode in patterns

porting errors from QRegExp

M  +2    -2    autotests/src/vimode/base.cpp
M  +4    -0    autotests/src/vimode/keys.cpp
M  +1    -1    src/vimode/commandrangeexpressionparser.cpp
M  +2    -2    src/vimode/modes/modebase.cpp
M  +2    -2    src/vimode/modes/normalvimode.cpp

https://invent.kde.org/frameworks/ktexteditor/-/commit/bf08a9a6faf35ca2f6c69a9f64b545e0e7129436