Commit dbb3e611 cleaned up a bunch of conditionals, but made one change
too many in `magit-goto-diffstats', causing it to report "No diffstats
section found" even when it *did* find one.

Signed-off-by: Pieter Praet <[email protected]>
---
 magit.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/magit.el b/magit.el
index de983de..bacd822 100644
--- a/magit.el
+++ b/magit.el
@@ -1924,8 +1924,8 @@ (defun magit-goto-diffstats ()
                  (when (eq (magit-section-type sec) 'diffstats)
                    (throw 'section-found
                           (magit-section-beginning sec)))))))
-    (when pos
-      (goto-char pos)
+    (if pos
+        (goto-char pos)
       (when (called-interactively-p 'interactive)
         (message "No diffstats section found")))))
 
-- 
1.7.11.1

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"magit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to