The patch attached for this log entry is incorrect. The following one is
the correct one.
magit.el | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/magit.el b/magit.el
index 654adf0..eedb9f8 100644
--- a/magit.el
+++ b/magit.el
@@ -806,11 +806,12 @@ see `magit-insert-section' for meaning of the arguments"
(magit-show-commit next))
(if (not (magit-section-hidden next))
(let ((offset (- (line-number-at-pos
- (magit-section-beginning next))
- (line-number-at-pos
- (magit-section-end next)))))
- (if (< offset (window-height))
- (recenter offset)))))
+ (magit-section-end next))
+ (line-number-at-pos
+ (magit-section-beginning next)))))
+ (if (and (< window-min-height offset)
+ (< offset (window-height)))
+ (recenter (- offset))))))
(message "No next section"))))
(defun magit-prev-section (section)
--
1.6.5.8
--
To unsubscribe, reply using "remove me" as the subject.