-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code editor toggle comment doesn't uncomment if there's a different amount of #'s #83331
Comments
I might fix this next week if I have time, but feel free to work on this if you want. Shouldn't be hard to fix. |
I would love to try and fix this, can I get assigned to this issue? |
Just go ahead, issues aren't usually assigned 👍 |
Line 1504 in a574c02
Lines 1912 to 1915 in a574c02
Lines 2939 to 2963 in a574c02
From my investigation. The issue seems to root from the function This issue can also be reproduced by simply adding multiple comment delimiter in a line then using the In-line comment shortcut:
|
Thanks @Lunarisnia for taking care of this! |
Godot version
v4.2.beta1.official [b137180]
System information
Windows 10
Issue description
Toggle comment adds more comment delimiters when there's different amount of delimiters, even if all the lines are commented.
Current behavior:
Expected behavior (from v4.2.dev6.official [57a6813]):
Regression likely happened in #81486
Steps to reproduce
Open script editor. Comment some lines. Then select bigger area enclosing some of the commented lines, and toggle comment twice or more.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: