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

Snippets that contain an indent do not expand to spaces when 'expandtab' is set #41

Closed
jmcantrell opened this issue Nov 15, 2023 · 2 comments

Comments

@jmcantrell
Copy link

If a snippet file foo.snip contains something like (where <tab> is a tab character):

<tab>test

And the buffer contains (where * is the cursor position):

foo*

And 'expandtab' is set, the buffer will be the following after expansion:

<tab>test

Where it should be (given a 'shiftwidth' setting of 4:

    test
@Jorenar
Copy link
Owner

Jorenar commented Nov 15, 2023

Weird, b99bc0e should have already addressed exactly this scenario

@jmcantrell
Copy link
Author

jmcantrell commented Nov 15, 2023

For some reason, I did not get that commit when I last pulled. It is expanding the tabs now, but they are expanded to the value of 'tabstop' and not 'shiftwidth'.

I'll open a new issue.

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

No branches or pull requests

2 participants