Skip to content
Snippets Groups Projects
Commit ce4908da authored by Luis Lavena's avatar Luis Lavena
Browse files

Merge pull request #102 from yui-knk/fix-completion_proc

Fix bug when used with pry-remote(drb environment).
parents dc35d12d d62ab889
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -89,7 +89,7 @@ module Readline
# Readline.completion_proc = proc{ |s| list.grep( /^#{Regexp.escape(s)}/) }
#
def self.completion_proc=(proc)
unless defined? proc.call
unless proc.respond_to? :call
raise ArgumentError,"argument must respond to `call'"
end
@completion_proc = proc
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment