Silence evil-matchit errors

This commit is contained in:
Henrik Lissner 2017-05-28 15:32:16 +02:00
parent e2f06f0692
commit 1cc199497d
3 changed files with 16 additions and 8 deletions

View file

@ -71,10 +71,11 @@
`hs-toggle-hiding'. Otherwise, if on a delimiter, jump to the matching one with
`evilmi-jump-items'. If in a magit-status buffer, use `magit-section-toggle'."
(interactive)
(call-interactively
(cond ((eq major-mode 'magit-status-mode)
#'magit-section-toggle)
((+evil-fold-p)
#'+evil/fold-toggle)
(t
#'evilmi-jump-items))))
(ignore-errors
(call-interactively
(cond ((eq major-mode 'magit-status-mode)
#'magit-section-toggle)
((+evil-fold-p)
#'+evil/fold-toggle)
(t
#'evilmi-jump-items)))))