Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #120 from sencer/pull

a:v -> escape(a:v) in GetRubyVarType for *args
  • Loading branch information...
commit 2ee2763ed8a885e085463deb7858754be78c08b5 2 parents 7a019bb + f53e7f1
@AndrewRadev AndrewRadev authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  autoload/rubycomplete.vim
View
2  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)
Please sign in to comment.
Something went wrong with that request. Please try again.