]> git.eshelyaron.com Git - emacs.git/commit
Fix "Args out of range" error in c-determine-limit. Fixes bug #28598.
authorAlan Mackenzie <acm@muc.de>
Mon, 30 Oct 2017 17:33:03 +0000 (17:33 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 30 Oct 2017 17:33:03 +0000 (17:33 +0000)
commit18331d00da7394f169b842f9e701568fede9b402
tree7fc1d499b9713aa087134914f7ba46dbe700bb8b
parentedde35e6f8c21979035824ae1845c33e0a5e0da0
Fix "Args out of range" error in c-determine-limit.  Fixes bug #28598.

* lisp/progmodes/cc-engine.el (c-determine-limit-get-base): If the candidate
position for BASE is below point-min, scan forward to the end of the current
literal.
(c-determine-limit): Add an extra arm to the final cond form, testing for BASE
being at point-min.
lisp/progmodes/cc-engine.el