You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
nelstrom commentedon Aug 12, 2013
That's valid Ruby is it? Well, patches welcome!