From d347574d301631d94ae81fe16b78d29772fe87d5 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 28 Oct 2019 12:13:58 -0400 Subject: [PATCH] Fix #1973: selected region survives switching workspaces Leaving behind ineffectual region highlights --- modules/ui/workspaces/config.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/ui/workspaces/config.el b/modules/ui/workspaces/config.el index 33235cbd7..e401719ca 100644 --- a/modules/ui/workspaces/config.el +++ b/modules/ui/workspaces/config.el @@ -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