Prevent 'not in valid workspace' error on switch project

This commit is contained in:
Henrik Lissner 2020-02-25 14:13:07 -05:00
parent f716aa5158
commit 505ca8712d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -535,6 +535,7 @@ This be hooked to `projectile-after-switch-project-hook'."
(unwind-protect (unwind-protect
(if (and (not (null +workspaces-on-switch-project-behavior)) (if (and (not (null +workspaces-on-switch-project-behavior))
(or (eq +workspaces-on-switch-project-behavior t) (or (eq +workspaces-on-switch-project-behavior t)
(equal (safe-persp-name (get-current-persp)) persp-nil-name)
(+workspace-buffer-list))) (+workspace-buffer-list)))
(let* ((persp (let* ((persp
(let ((project-name (doom-project-name +workspaces--project-dir))) (let ((project-name (doom-project-name +workspaces--project-dir)))