diff options
| -rw-r--r-- | lisp/font-lock.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index a2b5b7d1c4e..5081874ca90 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el | |||
| @@ -310,7 +310,7 @@ slow things down!") | |||
| 310 | (narrow-to-region s e) | 310 | (narrow-to-region s e) |
| 311 | (while (not (eobp)) | 311 | (while (not (eobp)) |
| 312 | (let ((next (next-single-property-change (point) 'face))) | 312 | (let ((next (next-single-property-change (point) 'face))) |
| 313 | (if (> next (point-max)) | 313 | (if (or (null next) (> next (point-max))) |
| 314 | (setq next (point-max))) | 314 | (setq next (point-max))) |
| 315 | (if (not (get-text-property (point) 'face)) | 315 | (if (not (get-text-property (point) 'face)) |
| 316 | (put-text-property (point) next 'face face)) | 316 | (put-text-property (point) next 'face face)) |