]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-before-change): Fix BOB bug.
authorAlan Mackenzie <acm@muc.de>
Sun, 25 Mar 2007 12:03:13 +0000 (12:03 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 25 Mar 2007 12:03:13 +0000 (12:03 +0000)
lisp/progmodes/cc-mode.el

index 4e0b92d107cf2fc2a16b495f2a1d2b442540e0bb..f5da0eecc2ec3ac5462350c646423b5746c11151 100644 (file)
@@ -509,9 +509,9 @@ preferably use the `c-mode-menu' language constant directly."
              type type-pos
              marked-id term-pos
              (end1
-              (if (eq (get-text-property end 'face) 'font-lock-comment-face)
-                  (previous-single-property-change end 'face)
-                end)))
+              (or (and (eq (get-text-property end 'face) 'font-lock-comment-face)
+                       (previous-single-property-change end 'face))
+                  end)))
          (when (>= end1 beg) ; Don't hassle about changes entirely in comments.
            ;; Find a limit for the search for a `c-type' property
            (while