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

vir doens't select inner ruby block #14

Open
Kache opened this issue Aug 12, 2013 · 1 comment
Open

vir doens't select inner ruby block #14

Kache opened this issue Aug 12, 2013 · 1 comment

Comments

@Kache
Copy link

Kache commented Aug 12, 2013

using this example:

module Test
  def self.something(x)
    something_else(5) do
      puts "b"
    end
  end

  def something_else(x, &block)
    y = 1
    if x > 2
      if x + y > 5 then puts "a" else block.call end
    end
  end
end

Put cursor on y = 1 and use the vir command in normal mode.

Result: Lines inside the whole module are selected.

Expected: Lines inside the something_else method should be selected

Additional note: If the if then else end block is removed, this problem no longer occurs.

@nelstrom
Copy link
Owner

That's valid Ruby is it? Well, patches welcome!

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