emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/diff-ansi 7463fe2100: Cleanup: use pos-bol/eol as respecti


From: ELPA Syncer
Subject: [nongnu] elpa/diff-ansi 7463fe2100: Cleanup: use pos-bol/eol as respecting fields isn't needed
Date: Fri, 13 Jan 2023 04:58:47 -0500 (EST)

branch: elpa/diff-ansi
commit 7463fe2100e39ab88b1993b6b331983d80230dfa
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    Cleanup: use pos-bol/eol as respecting fields isn't needed
---
 diff-ansi.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/diff-ansi.el b/diff-ansi.el
index 29952628b6..6a69e9069b 100644
--- a/diff-ansi.el
+++ b/diff-ansi.el
@@ -644,10 +644,10 @@ Argument BEG is only used to calculate the progress 
percentage."
                (disp-beg (car range))
                (disp-end
                 (min
-                 end ; Clamp twice because `line-end-position' could exceed 
the value.
+                 end ; Clamp twice because `pos-eol' could exceed the value.
                  (save-excursion
                    (goto-char (min (+ disp-beg diff-ansi-chunks-size) end))
-                   (line-end-position)))))
+                   (pos-eol)))))
           (save-excursion
             (cond
              ((eq disp-beg disp-end)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]