From f870f12334334ec3bbd0f346702da177cdce9d56 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 19 Mar 2005 14:48:35 +0000 Subject: * misc/ruby-mode.el (ruby-expr-beg): returned true always. fixed: [ruby-list:40683] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- misc/ruby-mode.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'misc/ruby-mode.el') diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index 64d231f58f..e2f64c8c34 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)) -- cgit v1.2.3