Commits

aidan  committed a7e1bf3

Revert my CC-mode change, DTRT (from Michael Thome)

  • Participants
  • Parent commits 8b23775

Comments (0)

Files changed (2)

File cc-engine.el

 	    (and
 	     (progn
 	       (setq search-pos (point))
-	       (if (>= bound (point))
-		   (re-search-forward regexp bound noerror)))
+	       (re-search-forward regexp bound noerror))
 
 	     (progn
 	       (setq state (parse-partial-sexp
 			     (looking-at "{"))
 			(c-safe (c-forward-sexp) t)
 		      t)
+		    (< (point) limit) ;; Prevent a wrong-side-of-point error.
 		    (c-syntactic-re-search-forward "[;,{]" limit 'move t)
 		    (backward-char)))