Skip to content

Commit 8562472

Browse files
committed
Another missing "*" escape
1 parent f11ca11 commit 8562472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/rubycomplete.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function! s:GetBufferRubyEntity( name, type, ... )
9393

9494
let stopline = 1
9595

96-
let crex = '^\s*\<' . a:type . '\>\s*\<' . a:name . '\>\s*\(<\s*.*\s*\)\?'
96+
let crex = '^\s*\<' . a:type . '\>\s*\<' . escape(a:name, '*') . '\>\s*\(<\s*.*\s*\)\?'
9797
let [lnum,lcol] = searchpos( crex, 'w' )
9898
"let [lnum,lcol] = searchpairpos( crex . '\zs', '', '\(end\|}\)', 'w' )
9999

0 commit comments

Comments
 (0)