branch: elpa/inf-ruby
commit dac615c7fdbb57587465b1c497f8be4c979439e1
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
ruby-send-last-stmt: When on empty line, evaluate the previous
---
inf-ruby.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/inf-ruby.el b/inf-ruby.el
index e4a4a9c832..f685eeba7e 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -742,6 +742,7 @@ Optionally provide FILE and LINE metadata to Ruby."
(interactive "P")
(let (beg)
(save-excursion
+ (skip-chars-backward " \t\n")
(cond
((and (derived-mode-p 'ruby-mode)
(bound-and-true-p smie-rules-function))