Skip to content

Commit

Permalink
Allow sending code from non-file buffers.
Browse files Browse the repository at this point in the history
  • Loading branch information
nonsequitur committed Jul 18, 2010
1 parent 60f9cfa commit 5e9912f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inf-ruby.el
Expand Up @@ -224,7 +224,7 @@ Must not contain ruby meta characters.")
(defun ruby-send-region (start end) (defun ruby-send-region (start end)
"Send the current region to the inferior Ruby process." "Send the current region to the inferior Ruby process."
(interactive "r") (interactive "r")
(let (term (file (buffer-file-name)) line) (let (term (file (or buffer-file-name (buffer-name))) line)
(save-excursion (save-excursion
(save-restriction (save-restriction
(widen) (widen)
Expand Down

0 comments on commit 5e9912f

Please sign in to comment.