feature/evil: fix +evil/matchit-or-toggle-fold in magit modes

- this function only worked in magit-status-mode but not other modes like
  magit-log-mode, magit-process-mode
This commit is contained in:
Yiming Chen 2018-01-15 16:40:04 +08:00
parent 6790d666e0
commit 322e6afd55

View File

@ -88,7 +88,7 @@
(interactive)
(ignore-errors
(call-interactively
(cond ((eq major-mode 'magit-status-mode)
(cond ((string-prefix-p "magit" (symbol-name major-mode))
#'magit-section-toggle)
((+evil-fold-p)
#'+evil:fold-toggle)