summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2018-12-09 12:32:53 -0500
committerKyle Meyer <kyle@kyleam.com>2018-12-09 12:32:53 -0500
commitd7332ace0a1b6881e66876927bf8c53797579701 (patch)
tree672672447220723d3ef2b7a677785c7003e4c4a3 /init.el
parent6e859d4546e1d0ef7093ff5a7ede679bfc7efaa6 (diff)
downloademacs.d-d7332ace0a1b6881e66876927bf8c53797579701.tar.gz
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.
Diffstat (limited to 'init.el')
-rw-r--r--init.el3
1 files changed, 2 insertions, 1 deletions
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)))