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 gq to handle tab indentation #4050

Merged
merged 2 commits into from Sep 7, 2019
Merged

Fix gq to handle tab indentation #4050

merged 2 commits into from Sep 7, 2019

Conversation

orn688
Copy link
Contributor

@orn688 orn688 commented Sep 7, 2019

What this PR does / why we need it: The gq command to "reflow" selected text in visual line mode didn't properly handle tabs, replacing them with spaces.

Which issue(s) this PR fixes: (none, I can create one if needed)

Special notes for your reviewer: I added another commented-out gq test case under the assumption that it would also "run poorly on Travis". It passes locally though (along with the two old commented-out gq tests).

@J-Fields
Copy link
Member

J-Fields commented Sep 7, 2019

Fixes #3929

@orn688
Copy link
Contributor Author

orn688 commented Sep 7, 2019

Ah thanks! I checked a couple months ago to see if there was an issue for this and (incorrectly) assumed none had been created in the interim 🙂

@J-Fields
Copy link
Member

J-Fields commented Sep 7, 2019

LGTM. Why do you assume it won't pass on CI though?

@orn688
Copy link
Contributor Author

orn688 commented Sep 7, 2019

LGTM. Why do you assume it won't pass on CI though?

There's a comment above the old commented-out tests that says they don't work on Travis – I can try uncommenting them all to see if they succeed.

@orn688
Copy link
Contributor Author

orn688 commented Sep 7, 2019

The gq tests are pretty slow, but they're passing!

The `gq` command to "reflow" selected text in visual line mode didn't
properly handle tabs, replacing them with spaces.
They used to "run poorly on Travis".
Copy link
Member

@J-Fields J-Fields left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@J-Fields J-Fields merged commit cf076c6 into VSCodeVim:master Sep 7, 2019
@orn688 orn688 deleted the indent branch September 7, 2019 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants