Skip to content

ir does not contract selection #20

@radarek

Description

@radarek

Contracting selection does with ir not work for me (ar works just fine). I run tests and all passes. Here is example ruby file and simplest vimrc which reproduce bug in my computer.

module Foo
  class Bar
    def Baz
      [1, 2, 3].each do |i|
        i + 1
      end
    end
  end
end
set nocompatible
syntax on
filetype off
set rtp+=~/.vim/bundle/Vundle.vim/

call vundle#begin('/tmp/vim/')
Plugin 'gmarik/Vundle.vim'
Plugin 'kana/vim-textobj-user'
Plugin 'nelstrom/vim-textobj-rubyblock'
call vundle#end()

filetype plugin indent on

runtime macros/matchit.vim

syntax on
filetype on
filetype plugin on
filetype indent on

Here are my steps:
gg
var
ir # this works OK, selection is reduced by 1 level
ir # this doesn't work

Any idea what may be wrong?

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