summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/ruby-mode.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index 9866bb3fbf..0218fe55ce 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -312,8 +312,7 @@ The variable ruby-indent-level controls the amount of indentation.
(or (eq (char-syntax (char-before (point))) ?w)
(ruby-special-char-p))))
nil)
- ((or (goto-char start)
- (looking-at ruby-operator-re)
+ ((or (save-excursion (goto-char start) (looking-at ruby-operator-re))
(looking-at "[\\[({,;]")
(and (or (not (eq option 'heredoc))
(< space 0))