[ivy] Fix spacemacs/layouts-ts-close-other

Problem: It called: (spacemacs/helm-persp-close)
Solution: Call (spacemacs/ivy-spacemacs-layout-close-other) when ivy is used.
This commit is contained in:
duianto 2019-10-03 17:09:01 +02:00 committed by smile13241324
parent 86c4ca2133
commit a7d45a5221
2 changed files with 5 additions and 1 deletions

View File

@ -1085,6 +1085,7 @@ Other:
- Replaced deprecated =avy--generic-jump= with =avy-jump=
(thanks to Dominik Schrempf)
- Switch recreated messages buffer to =evil-normal-state= (thanks to duianto)
- Fixed =spacemacs/layouts-ts-close-other= with =ivy= (thanks to duianto)
*** Layer changes and fixes
**** Agda
- Fixes

View File

@ -200,7 +200,10 @@ ask the user if a new layout should be created."
(defun spacemacs/layouts-ts-close-other ()
(interactive)
(call-interactively 'spacemacs/helm-persp-close)
(cond ((configuration-layer/layer-used-p 'helm)
(spacemacs/helm-persp-close))
((configuration-layer/layer-used-p 'ivy)
(spacemacs/ivy-spacemacs-layout-close-other)))
(spacemacs/layouts-transient-state/body))
(defun spacemacs/layouts-ts-kill ()