diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/progmodes/flymake.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index 83b5ee33aa0..6f3d2d59b5c 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el | |||
| @@ -604,10 +604,11 @@ associated `flymake-category' return DEFAULT." | |||
| 604 | 604 | ||
| 605 | (defun flymake--highlight-line (diagnostic) | 605 | (defun flymake--highlight-line (diagnostic) |
| 606 | "Highlight buffer with info in DIGNOSTIC." | 606 | "Highlight buffer with info in DIGNOSTIC." |
| 607 | (when-let* ((type (flymake--diag-type diagnostic)) | 607 | (let ((type (or (flymake--diag-type diagnostic) |
| 608 | (ov (make-overlay | 608 | :error)) |
| 609 | (flymake--diag-beg diagnostic) | 609 | (ov (make-overlay |
| 610 | (flymake--diag-end diagnostic)))) | 610 | (flymake--diag-beg diagnostic) |
| 611 | (flymake--diag-end diagnostic)))) | ||
| 611 | ;; First set `category' in the overlay | 612 | ;; First set `category' in the overlay |
| 612 | ;; | 613 | ;; |
| 613 | (overlay-put ov 'category | 614 | (overlay-put ov 'category |