Skip to content

Commit

Permalink
Merge pull request vim-ruby#120 from sencer/pull
Browse files Browse the repository at this point in the history
a:v -> escape(a:v) in GetRubyVarType for *args
  • Loading branch information
AndrewRadev committed Dec 16, 2012
2 parents 7a019bb + f53e7f1 commit 2ee2763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/rubycomplete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2ee2763

Please sign in to comment.