Permalink
Browse files

Allow sending code from non-file buffers.

  • Loading branch information...
1 parent 60f9cfa commit 5e9912fadb09a77f00a854510a01e9eda2334abf @nonsequitur committed Jul 18, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 inf-ruby.el
View
@@ -224,7 +224,7 @@ Must not contain ruby meta characters.")
(defun ruby-send-region (start end)
"Send the current region to the inferior Ruby process."
(interactive "r")
- (let (term (file (buffer-file-name)) line)
+ (let (term (file (or buffer-file-name (buffer-name))) line)
(save-excursion
(save-restriction
(widen)

0 comments on commit 5e9912f

Please sign in to comment.