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

    inf-ruby-completions: Use 'then' instead of semicolons
    
    Because completion in debugger doesn't work otherwise.
---
 inf-ruby.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index 4b1468b832..cbe3cc595b 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -365,10 +365,10 @@ The reason for this is unknown. Remove this line from 
`completions'."
     (set-process-filter proc (lambda (proc string) (setq kept (concat kept 
string))))
     (process-send-string
      proc
-     (format (concat "if defined?(Pry.config);"
+     (format (concat "if defined?(Pry.config) then "
                      "completor = 
Pry.config.completer.build_completion_proc(binding)"
-                     "elsif defined?(IRB::InputCompletor::CompletionProc);"
-                     "completor = IRB::InputCompletor::CompletionProc;"
+                     " elsif defined?(IRB::InputCompletor::CompletionProc) 
then "
+                     "completor = IRB::InputCompletor::CompletionProc "
                      "end;"
                      "puts completor.call('%s').compact if completor\n")
              (ruby-escape-single-quoted seed)))

Reply via email to