Bug 471403

Summary: Auto-indentation can delete non-indenting characters
Product: [Applications] kate Reporter: Luke-Jr <luke-jr+kdebugs>
Component: partAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: major CC: p.r.worrall
Priority: NOR    
Version First Reported In: 22.12.3   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Luke-Jr 2023-06-24 01:49:12 UTC
SUMMARY
File content can be lost for no reason due to this bug.

STEPS TO REPRODUCE
1. Make a file with contents "\taaa\n\tbbbccc"
2. Go to the very beginning of the second line (before the tab); backspace to delete the \n and put both lines together
3. Immediately press Enter to restore the \n

OBSERVED RESULT
File content is now "\taaa\n\tccc" - "bbb" has been lost

EXPECTED RESULT
File content should go back to being "\taaa\n\tbbbccc"
Comment 1 Paul Worrall 2023-06-24 14:37:29 UTC

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