Commit 657071fc authored by Alan Mackenzie's avatar Alan Mackenzie
Browse files

cc-engine.el (c-remove-stale-state-cache): Fix off-by-one error. Fixes

bug #5747.
parent ceb245fc
2010-03-22 Alan Mackenzie <>
* progmodes/cc-engine.el (c-remove-stale-state-cache): Fix
off-by-one error. Fixes bug #5747.
2010-03-22 Juanma Barranquero <>
* image-dired.el (image-dired-display-thumbs): Fix typo in docstring.
......@@ -2624,7 +2624,7 @@ comment at the start of cc-engine.el for more info."
(< (point-max) c-state-old-cpp-end)))
(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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment