Permalink
Browse files

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...
1 parent 5cf94a2 commit 54508a992340d268ef497634a298e1be02c14b44 @nonsequitur committed Jun 23, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 inf-ruby.el
View
2 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))

0 comments on commit 54508a9

Please sign in to comment.