diff options
author | Alan Mackenzie <acm@muc.de> | 2017-08-27 10:38:47 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2017-08-27 10:38:47 +0000 |
commit | a2c967e28ba53d282764bdcc624e64b6c3b7bb06 (patch) | |
tree | 35b74775cb73042d2a8073c1044c22071eeeb68b /lisp/progmodes/cc-engine.el | |
parent | 231bfd6818890c0c22181ad253f09c8f2399461d (diff) | |
download | emacs-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.el | 2 |
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 |