Permalink
Browse files

Fix escape_vim_singlequote_string

str argument is Symbol Object from Object.instance_methods etc,
and Symbol is undefined `#gsub`.
  • Loading branch information...
joker1007 committed Aug 14, 2012
1 parent 46c9e4e commit 65d246eb604408f7b0a7193600783a0e1b041446
Showing with 1 addition and 1 deletion.
  1. +1 −1 autoload/rubycomplete.vim
@@ -365,7 +365,7 @@ class VimRubyCompletion
end
def escape_vim_singlequote_string(str)
- str.gsub(/'/,"\\'")
+ str.to_s.gsub(/'/,"\\'")
end
def get_buffer_entity_list( type )

0 comments on commit 65d246e

Please sign in to comment.