Bug 448692 - Pressing Ctrl+Backspace (Delete Word Left) after single-letter word deletes two words
Summary: Pressing Ctrl+Backspace (Delete Word Left) after single-letter word deletes t...
Status: RESOLVED FIXED
Alias: None
Product: frameworks-ktexteditor
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.90.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-18 07:19 UTC by nyanpasu64
Modified: 2022-01-20 14:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nyanpasu64 2022-01-18 07:19:26 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Open KWrite and type asdf a. Alternatively you can type any number of words, followed by 1 or more spaces, then a single letter, then EOF or a newline.
2. Place the cursor at the end of the line and press Ctrl+Backspace.

OBSERVED RESULT
The single-letter word and the preceding word are deleted.

EXPECTED RESULT
Only the single-letter word is deleted.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.23.90
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.16.0-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GT 730/PCIe/SSE2

ADDITIONAL INFORMATION
Comment 1 Bug Janitor Service 2022-01-18 10:01:09 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/258
Comment 2 Christoph Cullmann 2022-01-20 14:35:17 UTC
Git commit ec9ac1b068a8dcdb812a132f21b5a657863b4109 by Christoph Cullmann, on behalf of Waqar Ahmed.
Committed on 20/01/2022 at 14:25.
Pushed by cullmann into branch 'master'.

Fix camel cursor when last word is of one letter only

M  +2    -0    autotests/src/camelcursortest.cpp
M  +15   -0    src/view/kateviewinternal.cpp

https://invent.kde.org/frameworks/ktexteditor/commit/ec9ac1b068a8dcdb812a132f21b5a657863b4109