Flymake correctly highlights whole last line if eob (bug#29201)
If a line/column pair indicates an end-of-buffer position, flymake should behave like the case where the last line of the buffer is referenced without a column indication. This behavior is currently to highlight the whole last line. * lisp/progmodes/flymake.el (flymake-diag-region): Correct conditions of fallback to the fallback-eol local function.
This commit is contained in:
parent
72e62d3fdb
commit
535688a418
1 changed files with 2 additions and 1 deletions
|
@ -334,7 +334,8 @@ region is invalid."
|
|||
(end (or (and sexp-end
|
||||
(not (= sexp-end beg))
|
||||
sexp-end)
|
||||
(ignore-errors (goto-char (1+ beg)))))
|
||||
(and (< (goto-char (1+ beg)) (point-max))
|
||||
(point))))
|
||||
(safe-end (or end
|
||||
(fallback-eol beg))))
|
||||
(cons (if end beg (fallback-bol))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue