Permalink
Browse files

Use s:flags for both searchpair() calls.

  • Loading branch information...
1 parent 0526155 commit 1a49fb61ac8076fc492f04019becd7474a78e25c @nelstrom committed Nov 21, 2010
Showing with 16 additions and 1 deletion.
  1. +13 −0 doc/tags
  2. +3 −1 plugin/textobj/rubyblock.vim
View
@@ -0,0 +1,13 @@
+:TextobjRubyblockDefaultKeyMappings textobj-rubyblock.txt /*:TextobjRubyblockDefaultKeyMappings*
+<Plug>(textobj-rubyblock-a) textobj-rubyblock.txt /*<Plug>(textobj-rubyblock-a)*
+<Plug>(textobj-rubyblock-i) textobj-rubyblock.txt /*<Plug>(textobj-rubyblock-i)*
+g:textobj_rubyblock_no_default_key_mappings textobj-rubyblock.txt /*g:textobj_rubyblock_no_default_key_mappings*
+textobj-rubyblock textobj-rubyblock.txt /*textobj-rubyblock*
+textobj-rubyblock-bugs textobj-rubyblock.txt /*textobj-rubyblock-bugs*
+textobj-rubyblock-changelog textobj-rubyblock.txt /*textobj-rubyblock-changelog*
+textobj-rubyblock-contents textobj-rubyblock.txt /*textobj-rubyblock-contents*
+textobj-rubyblock-customizing textobj-rubyblock.txt /*textobj-rubyblock-customizing*
+textobj-rubyblock-interface textobj-rubyblock.txt /*textobj-rubyblock-interface*
+textobj-rubyblock-introduction textobj-rubyblock.txt /*textobj-rubyblock-introduction*
+textobj-rubyblock-mappings textobj-rubyblock.txt /*textobj-rubyblock-mappings*
+textobj-rubyblock.txt textobj-rubyblock.txt /*textobj-rubyblock.txt*
@@ -18,7 +18,9 @@ let s:start_pattern = s:comment_escape . s:block_openers
let s:end_pattern = s:comment_escape . '\zs<end>'
function! s:select_a()
- call searchpair(s:start_pattern,'',s:end_pattern, 'W')
+ let s:flags = 'W'
+
+ call searchpair(s:start_pattern,'',s:end_pattern, s:flags)
let end_pos = getpos('.')
" Jump to match

0 comments on commit 1a49fb6

Please sign in to comment.