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

{VISUAL} doesn't keep the indentation #177

Closed
janko opened this issue Nov 25, 2014 · 2 comments
Closed

{VISUAL} doesn't keep the indentation #177

janko opened this issue Nov 25, 2014 · 2 comments

Comments

@janko
Copy link

janko commented Nov 25, 2014

I have the following snippet:

snippet b block
    ${1}
        {VISUAL}
    end

And I have the following Ruby code

class Foo
end

and I visually select those 2 lines, press <Tab>b<Tab>, then I expect to end up with this:

*cursor*
  class Foo
  end
end

But I end up with this:

*cursor*
  class Foo
end
end
@ajzafar
Copy link
Collaborator

ajzafar commented Nov 26, 2014

Just pushed a fix. Thanks for the report!

@janko
Copy link
Author

janko commented Nov 26, 2014

Thanks! ❤️

ajzafar added a commit that referenced this issue Jan 23, 2015
ajzafar added a commit that referenced this issue Jun 8, 2016
The fix for #177 only handled the case where a visual placeholder was on
a line with an indent. With this commit, all cases should be handled.
Hopefully.

See #233
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