Permalink
Browse files

a:v -> escape(a:v) in GetRubyVarType for *args

  • Loading branch information...
sencer committed Dec 11, 2012
1 parent 7a019bb commit f53e7f127133db9574c6a576898fd683040c134e
Showing with 1 addition and 1 deletion.
  1. +1 −1 autoload/rubycomplete.vim
@@ -133,7 +133,7 @@ function! s:GetRubyVarType(v)
let stopline = 1
let vtp = ''
let pos = getpos('.')
- let sstr = '^\s*#\s*@var\s*'.a:v.'\>\s\+[^ \t]\+\s*$'
+ let sstr = '^\s*#\s*@var\s*'.escape(a:v, '*').'\>\s\+[^ \t]\+\s*$'
let [lnum,lcol] = searchpos(sstr,'nb',stopline)
if lnum != 0 && lcol != 0
call setpos('.',pos)

0 comments on commit f53e7f1

Please sign in to comment.