diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index dcaa396a2e..ace0f2794f 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -874,7 +874,7 @@ Also ignores spaces after parenthesis when 'space." (defun ruby-electric-brace (arg) (interactive "P") - (insert-char last-command-char 1) + (insert-char last-command-event 1) (ruby-indent-line t) (delete-char -1) (self-insert-command (prefix-numeric-value arg)))