diff options
Diffstat (limited to 'lisp/progmodes/ruby-mode.el')
-rw-r--r-- | lisp/progmodes/ruby-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index fa681e5cde3..a9c4cf95700 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -355,7 +355,7 @@ explicitly declared in magic comment." (memq (char-syntax (char-after pos)) '(?w ?\")))) (defun ruby-smie--at-dot-call () - (and (eq ?w (char-syntax (char-after))) + (and (eq ?w (char-syntax (following-char))) (eq (char-before) ?.) (not (eq (char-before (1- (point))) ?.)))) |