From d7332ace0a1b6881e66876927bf8c53797579701 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 9 Dec 2018 12:32:53 -0500 Subject: Avoid adding redundant remote-counts to magit-status-sections-hook In some scenarios, I've managed to get two km/magit-insert-remote-counts in magit-status-sections-hook. I don't see why that would be because I think :config should only run once. --- init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'init.el') diff --git a/init.el b/init.el index 9e7157b..43b6e19 100644 --- a/init.el +++ b/init.el @@ -1165,7 +1165,8 @@ (let ((funcs (list #'magit-insert-unpushed-to-upstream-or-recent #'magit-insert-unpushed-to-pushremote #'magit-insert-unpulled-from-pushremote - #'magit-insert-unpulled-from-upstream))) + #'magit-insert-unpulled-from-upstream + #'km/magit-insert-remote-counts))) (cl-remove-if (lambda (x) (memq x funcs)) magit-status-sections-hook)) (list #'km/magit-insert-remote-counts))) -- cgit v1.2.3