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

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

[nongnu] elpa/inf-ruby 54508a9923 011/265: Mac OS: Fix completion output


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby 54508a9923 011/265: Mac OS: Fix completion output splitting for Ruby 1.8.7 compatibility.
Date: Sat, 9 Jul 2022 21:59:09 -0400 (EDT)

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

    Mac OS: Fix completion output splitting for Ruby 1.8.7 compatibility.
    Ruby 1.8.7 completion output on the Mac is separated by "\r\n"
---
 inf-ruby.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index 377014052a..cbf65d793c 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -340,7 +340,7 @@ Then switch to the process buffer."
                                       (ruby-escape-single-quoted seed)))
     (while (and (not (string-match inf-ruby-prompt-pattern kept))
                 (accept-process-output proc 2)))
-    (setf completions (cdr (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]