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

Improve space-based shiftwidth detection #16

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

aclindsa
Copy link

@aclindsa aclindsa commented Dec 5, 2012

I've modified your detectindent script slightly to change how the number of spaces per tab is detected. It seems to have improved the detection a little, and figured I'd let you know in case you wanted to incorporate any of my changes back into your tree.

Thanks!

czchen and others added 6 commits October 11, 2012 21:12
The previous method of using the shortest existing tab spacing worked
some of the time, but isn't as robust as the GCD method (i.e. if there
was one or two lines that started with only one space, but the rest of
the lines started with four spaces, the old method would set shiftwidth
to 1).
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.

2 participants