summaryrefslogtreecommitdiff
path: root/lisp/progmodes/cc-engine.el
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2017-08-27 10:38:47 +0000
committerAlan Mackenzie <acm@muc.de>2017-08-27 10:38:47 +0000
commita2c967e28ba53d282764bdcc624e64b6c3b7bb06 (patch)
tree35b74775cb73042d2a8073c1044c22071eeeb68b /lisp/progmodes/cc-engine.el
parent231bfd6818890c0c22181ad253f09c8f2399461d (diff)
downloademacs-a2c967e28ba53d282764bdcc624e64b6c3b7bb06.tar.gz
Amend the CC Mode macro cache to cope with changes at the macro start
Fixes bug #28233. * lisp/progmodes/cc-engine.el (c-invalidate-macro-cache): Fix an off-by-1 error.
Diffstat (limited to 'lisp/progmodes/cc-engine.el')
-rw-r--r--lisp/progmodes/cc-engine.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index 59dc96af030..d20e575a928 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -248,7 +248,7 @@
;; parameters. END isn't used.
(cond
((null c-macro-cache))
- ((< beg (car c-macro-cache))
+ ((<= beg (car c-macro-cache))
(setq c-macro-cache nil
c-macro-cache-start-pos nil
c-macro-cache-syntactic nil