summaryrefslogtreecommitdiffstats
path: root/misc/ruby-mode.el
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-19 14:48:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-19 14:48:35 +0000
commit95c28ca9329d868b340f1c7fb1bafd3dbe29b904 (patch)
treedf5eee04fc96d20090bc45bceb5f69fd4e4f2f0f /misc/ruby-mode.el
parentd20c8e047239d3d322402ee00f734d52565f9a5b (diff)
downloadruby-95c28ca9329d868b340f1c7fb1bafd3dbe29b904.tar.gz
ruby-95c28ca9329d868b340f1c7fb1bafd3dbe29b904.tar.xz
ruby-95c28ca9329d868b340f1c7fb1bafd3dbe29b904.zip
* misc/ruby-mode.el (ruby-expr-beg): returned true always.
fixed: [ruby-list:40683] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc/ruby-mode.el')
-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 64d231f58..e2f64c8c3 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))