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

indent: Only use func shiftwidth() if it exists #49

Merged
merged 1 commit into from
Mar 23, 2015
Merged

Conversation

nyerup
Copy link

@nyerup nyerup commented Mar 18, 2015

shiftwidth() is not a builtin function, and my vim mojo isn't strong
enough to know where it could have come from. This change fallbacks to
using &sw instead of the shiftwidth() function, if the latter doesn't
exist.

Fixes Issue #48 in https://github.com/elzr/vim-json

shiftwidth() is not a builtin function, and my vim mojo isn't strong
enough to know where it could have come from. This change fallbacks to
using &sw instead of the shiftwidth() function, if the latter doesn't
exist.

Fixes Issue elzr#48 in https://github.com/elzr/vim-json
elzr added a commit that referenced this pull request Mar 23, 2015
indent: Only use func shiftwidth() if it exists
@elzr elzr merged commit 413a60b into elzr:master Mar 23, 2015
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