Permalink
Browse files

Another missing "*" escape

  • Loading branch information...
1 parent f11ca11 commit 85624725cba5866bb6a49a58aad4b2231fb9b950 @AndrewRadev AndrewRadev committed Sep 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 autoload/rubycomplete.vim
@@ -93,7 +93,7 @@ function! s:GetBufferRubyEntity( name, type, ... )
let stopline = 1
- let crex = '^\s*\<' . a:type . '\>\s*\<' . a:name . '\>\s*\(<\s*.*\s*\)\?'
+ let crex = '^\s*\<' . a:type . '\>\s*\<' . escape(a:name, '*') . '\>\s*\(<\s*.*\s*\)\?'
let [lnum,lcol] = searchpos( crex, 'w' )
"let [lnum,lcol] = searchpairpos( crex . '\zs', '', '\(end\|}\)', 'w' )

0 comments on commit 8562472

Please sign in to comment.