emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/inf-ruby c9a24aee52 005/265: Bugfix: Exclude input to IRB


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby c9a24aee52 005/265: Bugfix: Exclude input to IRB from the completion result.
Date: Sat, 9 Jul 2022 21:59:09 -0400 (EDT)

branch: elpa/inf-ruby
commit c9a24aee5203a907baa277543706abfefa1180f8
Author: Cornelius Mika <cornelius.mika@gmail.com>
Commit: Cornelius Mika <cornelius.mika@gmail.com>

    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

[Prev in Thread] Current Thread [Next in Thread]