Skip to content

Commit

Permalink
git: make SPC g b (magit-blame) idempotent
Browse files Browse the repository at this point in the history
Fixes #3467
  • Loading branch information
syl20bnr committed Oct 20, 2015
1 parent a3aba4e commit 7107ea5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layers/+source-control/git/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@
(spacemacs|define-micro-state git-blame
:doc (concat "Press [b] again to blame further in the history, "
"[q] to go up or quit.")
:on-enter (let (golden-ratio-mode) (call-interactively 'magit-blame))
:on-enter (let (golden-ratio-mode)
(unless (bound-and-true-p magit-blame-mode)
(call-interactively 'magit-blame)))
:persistent t
:bindings
("b" magit-blame)
Expand Down

0 comments on commit 7107ea5

Please sign in to comment.