current version

Doug Kearns dougkearns at gmail.com
Fri Apr 21 05:30:53 EDT 2006


On Fri, Apr 21, 2006 at 05:24:09PM +1000, Doug Kearns wrote:
> On Fri, Apr 21, 2006 at 12:34:48AM -0400, Mark Guzman wrote:
> 
> <snip>
> 
> >   I've added support for adding classes defined in the buffer to the
> > constants completion menu. It's checked into cvs, you just need to add
> > let g:rubycomplete_load_on_global = 1
> > to your vimrc...
> 
> FWIW, this var name is a little confusing to me since you're not, unless
> I'm misreading, actually 'loading' the class(es) in this case.
> 
> I'm also getting:
> 
> Error detected while processing function rubycomplete#Complete:
> line   22:
> TypeError: (eval):321:in `+': can't convert nil into Array
> 
> if I don't have the var set.
 
Something like this should fix it.

Regards,
Doug

Index: autoload/rubycomplete.vim
===================================================================
RCS file: /var/cvs/vim-ruby/vim-ruby/autoload/rubycomplete.vim,v
retrieving revision 1.10
diff -u -r1.10 rubycomplete.vim
--- autoload/rubycomplete.vim   21 Apr 2006 04:30:18 -0000      1.10
+++ autoload/rubycomplete.vim   21 Apr 2006 09:30:52 -0000
@@ -231,7 +231,7 @@
 def get_buffer_classes()
   # this will be a little expensive.
   allow_aggressive_load =
VIM::evaluate('g:rubycomplete_load_on_global')
-  return if allow_aggressive_load != '1'
+  return [] if allow_aggressive_load != '1'
 
   buf = VIM::Buffer.current
   eob = buf.length


More information about the vim-ruby-devel mailing list