summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-23 20:09:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-23 20:09:46 +0000
commitf11ac55489d81744f162036b402dc8d3b4ebcda9 (patch)
treefb8783b51f3b85845a96da4177103d6278992577
parentf468e000ce3ed8c5158af06600a0724bf9619c4b (diff)
* misc/ruby-style.el (ruby-style-label-indent): fix for labels inside
blocks in switch. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--misc/ruby-style.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 53a4349bf4..91f472ef85 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun Feb 24 05:09:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-style.el (ruby-style-label-indent): fix for labels inside
+ blocks in switch.
+
Sun Feb 24 03:52:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* util.c (valid_filename): use O_EXCL to get rid of clobbering
diff --git a/misc/ruby-style.el b/misc/ruby-style.el
index dd5ddffaf0..97206722f6 100644
--- a/misc/ruby-style.el
+++ b/misc/ruby-style.el
@@ -27,7 +27,7 @@
(defun ruby-style-label-indent (x)
(save-excursion
(unless (progn (backward-up-list) (back-to-indentation)
- (> (point) (cdr x)))
+ (>= (point) (cdr x)))
(goto-char (cdr x))
(condition-case ()
(progn