[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 535688a: Flymake correctly highlights whole last
From: |
Jo�o T�vora |
Subject: |
[Emacs-diffs] emacs-26 535688a: Flymake correctly highlights whole last line if eob (bug#29201) |
Date: |
Thu, 9 Nov 2017 16:18:54 -0500 (EST) |
branch: emacs-26
commit 535688a4181ae4052db354ce2b877507f11c9e66
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
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.
---
lisp/progmodes/flymake.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index 921ac91..883f967 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -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))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 535688a: Flymake correctly highlights whole last line if eob (bug#29201),
Jo�o T�vora <=