We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef2deea commit b0decc9Copy full SHA for b0decc9
1 file changed
autoload/rubycomplete.vim
@@ -704,7 +704,9 @@ class VimRubyCompletion
704
cv = eval("self.class.constants")
705
vartype = get_var_type( receiver )
706
dprint "vartype: %s" % vartype
707
- if vartype != ''
+
708
+ invalid_vartype = ['', "gets"]
709
+ if !invalid_vartype.include?(vartype)
710
load_buffer_class( vartype )
711
712
begin
@@ -732,7 +734,7 @@ class VimRubyCompletion
732
734
methods.concat m.instance_methods(false)
733
735
}
736
end
- variables += add_rails_columns( "#{vartype}" ) if vartype && vartype.length > 0
737
+ variables += add_rails_columns( "#{vartype}" ) if vartype && !invalid_vartype.include?(vartype)
738
739
when /^\(?\s*[A-Za-z0-9:^@.%\/+*\(\)]+\.\.\.?[A-Za-z0-9:^@.%\/+*\(\)]+\s*\)?\.([^.]*)/
740
message = $1
0 commit comments