branch: externals/ruby-end
commit f090fbbf742d4738179cf4d78e12f91b7a7db603
Author: Jeff Gran <[email protected]>
Commit: Jeff Gran <[email protected]>
make sure to call fallback commands interactively
---
ruby-end.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ruby-end.el b/ruby-end.el
index 39ae57c686..eb11de90e2 100644
--- a/ruby-end.el
+++ b/ruby-end.el
@@ -121,8 +121,8 @@
(defun ruby-end-fallback (key)
"Execute function that KEY was bound to before `ruby-end-mode'."
(let ((ruby-end-mode nil))
- (execute-kbd-macro
- (edmacro-parse-keys key))))
+ (call-interactively
+ (key-binding (edmacro-parse-keys key) t))))
(defun ruby-end-insert-end ()
"Closes block by inserting end."