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

Cannot expand selection past case #27

Open
i512 opened this issue Mar 18, 2018 · 1 comment
Open

Cannot expand selection past case #27

i512 opened this issue Mar 18, 2018 · 1 comment

Comments

@i512
Copy link

i512 commented Mar 18, 2018

I'm using neovim and I've installed the latest versions of vim-textobj-rubyblock and vim-textobj-user with Plug.
For example I want to expand my selection to include method baz.

module Foo
  class Bar
    def baz(a)
      case a # << cursor
      when 1
        1
      when 2
        2
      end
    end
  end
end

When I press var it selects

      case a
      when 1
        1
      when 2
        2
      end

When I repeat ar nothing happens, selection doesn't change.

@i512
Copy link
Author

i512 commented Mar 18, 2018

If I start expanding from a near method to class it actually selects the method with case:

module Foo
  class Bar
    def bar
      123 # << cursor
    end

    def baz(a)
      case a
      when 1
        1
      end
    end
  end
end

I press var and it selects:

    def bar
      123
    end

Next I press ar and it selects the other method that includes case:

    def baz(a)
      case a
      when 1
        1
      end
    end

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

1 participant