summaryrefslogtreecommitdiff
path: root/lisp/progmodes/grep.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2021-07-26 21:18:42 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2021-07-26 21:25:20 +0200
commit4f43058e9a69552e4bf600fd7a93bc1c459742ef (patch)
tree63faaf8aaec9444511bd8159d25717081d7bfd1c /lisp/progmodes/grep.el
parent67fe106d1007d3cef58aa789327ad66ed71e4902 (diff)
downloademacs-4f43058e9a69552e4bf600fd7a93bc1c459742ef.tar.gz
Adjust grep-mode end-col function return value
* lisp/progmodes/grep.el (grep-regexp-alist): Adjust the return value from the END-COL function by one since it is now (after fixing bug#49624) inclusive. Found by Juri Linkov.
Diffstat (limited to 'lisp/progmodes/grep.el')
-rw-r--r--lisp/progmodes/grep.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index 91c72a9429f..8f0a5acf708 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -389,7 +389,7 @@ Notice that using \\[next-error] or \\[compile-goto-error] modifies
(and mbeg (next-single-property-change
mbeg 'font-lock-face nil end))))
(when mend
- (- mend beg))))))
+ (- mend beg 1))))))
nil nil
(3 '(face nil display ":")))
("^Binary file \\(.+\\) matches" 1 nil nil 0 1))