mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -88,7 +88,7 @@
|
|||||||
(interactive)
|
(interactive)
|
||||||
(ignore-errors
|
(ignore-errors
|
||||||
(call-interactively
|
(call-interactively
|
||||||
(cond ((eq major-mode 'magit-status-mode)
|
(cond ((string-prefix-p "magit" (symbol-name major-mode))
|
||||||
#'magit-section-toggle)
|
#'magit-section-toggle)
|
||||||
((+evil-fold-p)
|
((+evil-fold-p)
|
||||||
#'+evil:fold-toggle)
|
#'+evil:fold-toggle)
|
||||||
|
Reference in New Issue
Block a user