* lisp/progmodes/compile.el
(compilation--insert-abbreviated-line): Handle long lines that end
in a newline. (Bug#70236)
The fix in commit
8f93cba324e4d4022a9422b8c56186213ba2de8d resulted in
the previous "Don't hide the final newline" code causing an off-by-one
error. With the new code the value of point is what is wanted in both
cases.
(cherry picked from commit
f950621e6a177fc3110f3dec7c92b7d499fd25d6)
(line-end-position))
(text-properties-at start)))))
(put-text-property
- start (if ends-in-nl
- ;; Don't hide the final newline.
- (1- (point))
- (point))
+ start (point)
'display (if (char-displayable-p ?…) "[…]" "[...]"))))
(if ends-in-nl (forward-char)))))