summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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