rubycomplete.vim leading whitespace bug?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

rubycomplete.vim leading whitespace bug?

Doug Kearns
Mark,

I've just started playing with your omni completion function and noticed
that the completion results differ depending on whether what is being
completed has leading whitespace.

Eg.
:foobar.
   :foobar.

The first offers the correct methods but the second offers me a list of
'constants'.

Any ideas?

Thanks,
Doug
_______________________________________________
vim-ruby-devel mailing list
[hidden email]
http://rubyforge.org/mailman/listinfo/vim-ruby-devel
Reply | Threaded
Open this post in threaded view
|

Re: rubycomplete.vim leading whitespace bug?

Doug Kearns
On Sun, Apr 16, 2006 at 12:40:07AM +1000, Doug Kearns wrote:

> Mark,
>
> I've just started playing with your omni completion function and noticed
> that the completion results differ depending on whether what is being
> completed has leading whitespace.
>
> Eg.
> :foobar.
>    :foobar.
>
> The first offers the correct methods but the second offers me a list of
> 'constants'.
>
> Any ideas?

Well I had a very quick look and it seems as though cWORD is not being
expanded properly, at the start of get_completions(), when there is
leading whitespace. It is always returning an empty string.
 
Regards,
Doug
_______________________________________________
vim-ruby-devel mailing list
[hidden email]
http://rubyforge.org/mailman/listinfo/vim-ruby-devel
Reply | Threaded
Open this post in threaded view
|

Re: rubycomplete.vim leading whitespace bug?

Mark Guzman
Doug Kearns wrote:
> Well I had a very quick look and it seems as though cWORD is not being
> expanded properly, at the start of get_completions(), when there is
> leading whitespace. It is always returning an empty string.
>  
Yup, noticed that. I have a fix, but I'm attempting to add support for
classes defined in the current buffer. Once thats going I'll check it
all in.
  --mark

--
sic transit gloria et adulescentia
blog | http://blog.hasno.info/blog
wiki | http://wiki.hasno.info

_______________________________________________
vim-ruby-devel mailing list
[hidden email]
http://rubyforge.org/mailman/listinfo/vim-ruby-devel