diff options
author | Kyle Meyer <kyle@kyleam.com> | 2018-12-09 12:32:53 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2018-12-09 12:32:53 -0500 |
commit | d7332ace0a1b6881e66876927bf8c53797579701 (patch) | |
tree | 672672447220723d3ef2b7a677785c7003e4c4a3 | |
parent | 6e859d4546e1d0ef7093ff5a7ede679bfc7efaa6 (diff) | |
download | emacs.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.
-rw-r--r-- | init.el | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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))) |