diff lisp/progmodes/cc-engine.el @ 107528:8fdf7263b3a2

cc-engine.el (c-remove-stale-state-cache): Fix off-by-one error. Fixes bug #5747.
author Alan Mackenzie <acm@muc.de>
date Mon, 22 Mar 2010 17:21:22 +0000
parents 94dd0c99026d
children ff222821fc33 36dd9f97c404
line wrap: on
line diff
--- a/lisp/progmodes/cc-engine.el	Mon Mar 22 17:56:22 2010 +0100
+++ b/lisp/progmodes/cc-engine.el	Mon Mar 22 17:21:22 2010 +0000
@@ -2624,7 +2624,7 @@
 			   (< (point-max) c-state-old-cpp-end)))
 		  (point-max)
 		(min (point-max) c-state-old-cpp-beg)))
-	(while (and c-state-cache (> (c-state-cache-top-lparen) upper-lim))
+	(while (and c-state-cache (>= (c-state-cache-top-lparen) upper-lim))
 	  (setq c-state-cache (cdr c-state-cache)))
 	;; If `upper-lim' is inside the last recorded brace pair, remove its
 	;; RBrace and indicate we'll need to search backwards for a previous