Bug 451764

Summary: Uncomment commented code block doesn't uncomment but instead adds extra comment prefix
Product: [Applications] kate Reporter: Sander van Grieken <sander>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: waqar.17a
Priority: NOR    
Version First Reported In: 21.12.3   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Sander van Grieken 2022-03-21 12:54:44 UTC
SUMMARY

Using the comment-selection function (on QML in my case), the code gets commented out using '//'. 
Trying to uncomment the same selection afterwards instead adds another '//' resulting in '////' for each line

STEPS TO REPRODUCE
1. Open QML file
2. Use Ctrl-/ to comment a block of code
3. Use Ctrl-/ again to uncomment that block

OBSERVED RESULT

double comment prefix

EXPECTED RESULT

comment prefix removed

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.92
Qt Version: 5.15.2

ADDITIONAL INFORMATION
on wayland
Comment 1 Waqar Ahmed 2022-03-21 13:26:21 UTC

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