Skip to content
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

Fix auto indent when pasting lines that begin with a comment #201421

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

russelldavis
Copy link
Contributor

Fixes #201420

The special handling for comments was originally added in 886f472 to fix #29753, but it had the side effect of causing #201420 -- preventing a desired auto indent in the majority of cases when pasting lines beginning with a comment (basically, all cases except multiline docblock style comments at the leftmost indentation level). That case has since been solved in a different way by e77b196, so removing this special handling gives us the best of both worlds.

The special handling for comments was originally added in 886f472
to fix microsoft#29753, but it had the side effect of preventing a desired auto
indent in the majority of cases when pasting lines beginning with a
comment (basically, all cases except multiline docblock style comments
at the leftmost indentation level). That case has since been solved in
a different way by e77b196, so removing this special handling gives us
the best of both worlds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants