diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ruby-electric.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/ruby-electric.el b/misc/ruby-electric.el index 6c1ad9a88a..c41593bb67 100644 --- a/misc/ruby-electric.el +++ b/misc/ruby-electric.el @@ -142,7 +142,7 @@ strings. Note that you must have Font Lock enabled." (defun ruby-electric-is-last-command-char-expandable-punct-p() (or (memq 'all ruby-electric-expand-delimiters-list) - (memq last-command-char ruby-electric-expand-delimiters-list))) + (memq last-command-event ruby-electric-expand-delimiters-list))) (defun ruby-electric-space-can-be-expanded-p() (if (ruby-electric-code-at-point-p) @@ -188,7 +188,7 @@ strings. Note that you must have Font Lock enabled." (and (ruby-electric-is-last-command-char-expandable-punct-p) (ruby-electric-code-at-point-p) (save-excursion - (insert (cdr (assoc last-command-char + (insert (cdr (assoc last-command-event ruby-electric-matching-delimeter-alist)))))) (defun ruby-electric-bar(arg) |