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

    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