Skip to content
This repository
Browse code

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"
  • Loading branch information...
commit 54508a992340d268ef497634a298e1be02c14b44 1 parent 5cf94a2
nonsequitur authored June 23, 2010

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  inf-ruby.el
2  inf-ruby.el
@@ -340,7 +340,7 @@ Then switch to the process buffer."
340 340
                                       (ruby-escape-single-quoted seed)))
341 341
     (while (and (not (string-match inf-ruby-prompt-pattern kept))
342 342
                 (accept-process-output proc 2)))
343  
-    (setf completions (cdr (butlast (split-string kept "[\r\n]") 2)))
  343
+    (setf completions (cdr (butlast (split-string kept "\r?\n") 2)))
344 344
     (set-process-filter proc comint-filt)
345 345
     completions))
346 346
 

0 notes on commit 54508a9

Please sign in to comment.
Something went wrong with that request. Please try again.