https://bugs.kde.org/show_bug.cgi?id=456534
Bug ID: 456534 Summary: "Toggle Comments" Tool Sometimes indefinitely adds comment symbols in python on each press Product: kate Version: 22.04.2 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: kwrite-bugs-n...@kde.org Reporter: shefabu...@gmail.com Target Milestone: --- SUMMARY Testing a python script, I attempted to toggle comments on a few blocks of code, the toggle instead added indefinitely to the existing comment symbol (not automatically, each press adds a new symbol) STEPS TO REPRODUCE 1. Create a basic script, here's an example: def main(): print("hello world") if 1 == 1: print("yes") print("after") if __name__ = '__main__': main() 2. Highlight portions you wish to comment out, hit the toggle comment shortcut (default is ctrl + /), then hit it again, if multiple blocks of code are highlighted, like both the function and the if statement at the bottom, it seems to add more comment characters instead of un-commenting what you just commented (goes for existing comments as well) OBSERVED RESULT Additional comment symbols added EXPECTED RESULT Toggle between a line being commented and not (adding/removing symbol as needed) SOFTWARE/OS VERSIONS Linux: EndeavourOS, Gnome DE (wayland support :/ ) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION I attempted to find where this code is in gitlab, but couldn't seem to find the lines that were for toggle comment as the only things mentioning "toggle comment" exactly were some .docbook files - so am not able to determine the issue myself. **I will happily dive into the code as well if someone can point me to the right spot to look** -- You are receiving this mail because: You are watching all bug changes.