Fix #1973: selected region survives switching workspaces

Leaving behind ineffectual region highlights
This commit is contained in:
Henrik Lissner 2019-10-28 12:13:58 -04:00
parent b0ac9abfbf
commit d347574d30
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -171,6 +171,9 @@ stored in `persp-save-dir'.")
(add-hook 'projectile-after-switch-project-hook #'+workspaces-switch-to-project-h)
;; Fix #1973: visual selection surviving workspace changes
(add-hook 'persp-before-deactivate-functions #'deactivate-mark)
;; Fix #1017: stop session persistence from restoring a broken posframe
(after! posframe
(add-hook! 'persp-after-load-state-functions