]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix an off by one error in c-guess-basic-syntax CASE 5B.1.
authorAlan Mackenzie <acm@muc.de>
Tue, 31 Jan 2012 21:59:58 +0000 (21:59 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 31 Jan 2012 21:59:58 +0000 (21:59 +0000)
lisp/ChangeLog
lisp/progmodes/cc-engine.el

index 0146dd8652f619127d9fef6915af0c0eca97d3e7..71f96cccfeb2607ee7748824ada086aaf2db4e6c 100644 (file)
@@ -1,3 +1,8 @@
+2012-01-31  Alan Mackenzie  <acm@muc.de>
+
+       * progmodes/cc-engine.el (c-guess-basic-syntax): CASE 5B.1: Fix an
+       off by one error.
+
 2012-01-31  Chong Yidong  <cyd@gnu.org>
 
        * frame.el (set-frame-font): New arg ALL-FRAMES.
index 25344fe96a78cce89656b63486ffe75597b488b9..52f18a89849e9328c16f2e6238faa99776bb6d35 100644 (file)
@@ -9447,7 +9447,7 @@ comment at the start of cc-engine.el for more info."
 
           ;; CASE 5B.1: Member init list.
           ((eq (char-after tmp-pos) ?:)
-           (if (or (> tmp-pos indent-point)
+           (if (or (>= tmp-pos indent-point)
                    (= (c-point 'bosws) (1+ tmp-pos)))
                (progn
                  ;; There is no preceding member init clause.