Skip to content

Contract selection doesn't work with "begin rescue end" block. #8

@jdguyot

Description

@jdguyot

Say you have this type of block:

def method
  begin
    puts "Yeah"
  rescue Exception => e
    puts e
  end
end

Select the puts "Yeah" code with vir, then select the begin rescue end block with ar. If you want to get back to the included block with ir, it doesn't select anything.

I know there is a decision to make between begin and rescue included lines of code. By default it could be the first one, and maybe one could remind from where the user came when he did ar. Or maybe use another command.

I discovered your project yesterday so I'm a total newbie with this for now, there may be already a good way to do this but I didn't find it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions