]> git.eshelyaron.com Git - emacs.git/commitdiff
Amend the CC Mode macro cache to cope with changes at the macro start
authorAlan Mackenzie <acm@muc.de>
Sun, 27 Aug 2017 10:38:47 +0000 (10:38 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 27 Aug 2017 10:38:47 +0000 (10:38 +0000)
Fixes bug #28233.

* lisp/progmodes/cc-engine.el (c-invalidate-macro-cache): Fix an off-by-1
error.

lisp/progmodes/cc-engine.el

index 59dc96af03092c56649b00be2b8556211baa54af..d20e575a928619f7356a966b4c597aa18f60806b 100644 (file)
   ;; 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