branch: elpa/inf-ruby
commit 5fa2f80d4ea57a8237291635216e37a40d83d4fa
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>

    inf-ruby-completions: Pass _pry_ when it's defined
    
    Should improve the completions in the current Pry context.
---
 inf-ruby.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index 04798a157e..ca09750fda 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -366,7 +366,8 @@ The reason for this is unknown. Remove this line from 
`completions'."
     (process-send-string
      proc
      (format (concat "if defined?(Pry.config) then "
-                     "completor = 
Pry.config.completer.build_completion_proc(binding)"
+                     "completor = Pry.config.completer"
+                     ".build_completion_proc(binding, defined?(_pry_) && 
_pry_)"
                      " elsif defined?(IRB::InputCompletor::CompletionProc) 
then "
                      "completor = IRB::InputCompletor::CompletionProc "
                      "end and "

Reply via email to