mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-18 10:57:34 +00:00
(font-lock-hack-keywords):
Handle next-single-property-change returning nil.
This commit is contained in:
parent
d831234ba2
commit
2555cdec34
1 changed files with 1 additions and 1 deletions
|
|
@ -310,7 +310,7 @@ slow things down!")
|
|||
(narrow-to-region s e)
|
||||
(while (not (eobp))
|
||||
(let ((next (next-single-property-change (point) 'face)))
|
||||
(if (> next (point-max))
|
||||
(if (or (null next) (> next (point-max)))
|
||||
(setq next (point-max)))
|
||||
(if (not (get-text-property (point) 'face))
|
||||
(put-text-property (point) next 'face face))
|
||||
|
|
|
|||
Loading…
Reference in a new issue