Bug 469361 - Pressing Enter with cursor before tab(s) removes characters after the tab(s)
Summary: Pressing Enter with cursor before tab(s) removes characters after the tab(s)
Status: RESOLVED DUPLICATE of bug 468495
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 23.04.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-04 18:28 UTC by kde
Modified: 2023-05-05 01:46 UTC (History)
2 users (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 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 ***