branch: elpa/magit
commit e8212b319ad0f3f7a4704cac266879bfb3a7b3d4
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    magit-diff-on-removed-line-p: Remove unnecessary condition
    
    Hunk headings cannot begin with a dash, so if the current line
    begins with a dash, that is enough no know it is not the heading
    but a remove line.
---
 lisp/magit-diff.el | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lisp/magit-diff.el b/lisp/magit-diff.el
index e50cdc6a4d3..df8028a369e 100644
--- a/lisp/magit-diff.el
+++ b/lisp/magit-diff.el
@@ -3621,7 +3621,6 @@ last (visual) lines of the region."
   (let ((section (magit-current-section)))
     (and (cl-typep section 'magit-hunk-section)
          (not (oref section combined))
-         (not (< (magit-point) (oref section content)))
          (= (char-after (pos-bol)) ?-))))
 
 (defun magit-diff--combined-p (section)

Reply via email to