Bug 469361

Summary: Pressing Enter with cursor before tab(s) removes characters after the tab(s)
Product: [Applications] kate Reporter: kde
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kde, waqar.17a
Priority: NOR    
Version First Reported In: 23.04.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description kde 2023-05-04 18:28:20 UTC
SUMMARY
Characters get removed for no reason.
I've experienced this issue a lot for some time now.
Finally I can reproduce:


STEPS TO REPRODUCE
1. Create a new document (tab indent, size 4)
2. Create a non empy line first
2. On the next line insert at least one tab and then a word, for example 123456
3. Move cursor to first column in front of the tabs and press enter

Example:
"Line 1\n
\t123456"

OBSERVED RESULT
"Line 1\n
\n
456"

EXPECTED RESULT
"Line 1\n
\n
\t123456"

Having multiple tabs removes even more characters after the tabs.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux with KDE
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9

ADDITIONAL INFORMATION
X11, Nvidia-proprietary
Comment 1 Waqar Ahmed 2023-05-05 01:46:53 UTC

*** This bug has been marked as a duplicate of bug 468495 ***