]> git.eshelyaron.com Git - emacs.git/commitdiff
CC Mode. Fix an off by one error. Fixes bug #41809
authorAlan Mackenzie <acm@muc.de>
Thu, 25 Jun 2020 17:07:16 +0000 (17:07 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 24 Nov 2020 16:34:07 +0000 (16:34 +0000)
* lisp/progmodes/cc-engine.el (c-full-pp-to-literal): Change > to >= (twice).

lisp/progmodes/cc-engine.el

index f751e72de47d48b74d8b8e883aecaf5d90456067..babe6e7476082adc333fe10a808b919ce0b36d4b 100644 (file)
@@ -3122,7 +3122,7 @@ comment at the start of cc-engine.el for more info."
               (not base)   ; FIXME!!! Compare base and far-base??
                                        ; (2019-05-21)
               (not end)
-              (> here end))
+              (>= here end))
              (progn
                (setq far-base-and-state (c-parse-ps-state-below here)
                      far-base (car far-base-and-state)
@@ -3135,7 +3135,7 @@ comment at the start of cc-engine.el for more info."
              (or
               (and (> here base) (null end))
               (null (nth 8 s))
-              (and end (> here end))
+              (and end (>= here end))
               (not
                (or
                 (and (nth 3 s)         ; string