fix(editor/vertico): cleanup if projectile command is canceled

This commit is contained in:
2022-01-18 03:04:53 +00:00
parent c7f63de6f2
commit c80b4e24fa

View File

@@ -70,9 +70,9 @@
(if vertico-directory-mode
(progn
(vertico-directory-mode -1)
(let ((result (apply orig-fun args)))
(vertico-directory-mode +1)
result))
(unwind-protect
(apply orig-fun args)
(vertico-directory-mode +1)))
(apply orig-fun args)))
(advice-add 'projectile-completing-read :around