Skip to content

Commit

Permalink
Merge pull request ConnorAtherton#102 from yui-knk/fix-completion_proc
Browse files Browse the repository at this point in the history
Fix bug when used with pry-remote(drb environment).
  • Loading branch information
luislavena committed Apr 1, 2014
2 parents dc35d12 + d62ab88 commit ce4908d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/readline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def self.line_buffer
# 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
Expand Down

0 comments on commit ce4908d

Please sign in to comment.