branch: elpa/inf-ruby
commit c9a24aee5203a907baa277543706abfefa1180f8
Author: Cornelius Mika <[email protected]>
Commit: Cornelius Mika <[email protected]>

    Bugfix: Exclude input to IRB from the completion result.
    The first element in 'kept' just mirrors the call to the IRB
    completion system.
---
 inf-ruby.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index fff3c6c716..d389bf10de 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -331,7 +331,7 @@ Then switch to the process buffer."
                                       (ruby-escape-single-quoted seed)))
     (while (not (string-match inf-ruby-prompt-pattern kept)) 
(accept-process-output proc))
     (if (string-match "^[[:alpha:]]+?Error: " kept) (error kept))
-    (setf completions (butlast (split-string kept "[\r\n]") 2))
+    (setf completions (cdr (butlast (split-string kept "[\r\n]") 2)))
     (set-process-filter proc comint-filt)
     completions))
 

Reply via email to