-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Ignore empty lines when uncommenting code #81486
Ignore empty lines when uncommenting code #81486
Conversation
I did some test with vscode and have updated my code a little bit according to vscode's default behaviour, the code works this way now: When commenting/uncommenting code, empty lines do not affect godot's decision of whether the selected code is commented or not, unless they are all empty lines, in that case I treat them as uncommented code. |
b88a2fb
to
488df1b
Compare
Hi @Paulb23 After I commented in the current stable 4.1, it became this, looks like both carets collapsed: And in the godot with my commit, it became this: The caret's position changed, yes, but the master version doest't seem working correctly too. |
488df1b
to
57fef5c
Compare
57fef5c
to
12299e0
Compare
Thanks! |
Fixes #81474