From 3b6fd1b360953ca70a8a6de06e5b44c21e2d9d02 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 11 Feb 2020 13:36:23 -0500 Subject: [PATCH] Deactivate mark after successful file search Fixes #2523 --- modules/completion/helm/autoload/helm.el | 1 + modules/completion/ivy/autoload/ivy.el | 1 + 2 files changed, 2 insertions(+) diff --git a/modules/completion/helm/autoload/helm.el b/modules/completion/helm/autoload/helm.el index 610abb75d..c453eabad 100644 --- a/modules/completion/helm/autoload/helm.el +++ b/modules/completion/helm/autoload/helm.el @@ -58,6 +58,7 @@ workspace." (delq nil (append (list (when all-files "-z -uu") (unless recursive "--maxdepth 1")) args)))) + (setq deactivate-mark t) (helm-rg (or query (when (use-region-p) (let ((beg (or (bound-and-true-p evil-visual-beginning) (region-beginning))) diff --git a/modules/completion/ivy/autoload/ivy.el b/modules/completion/ivy/autoload/ivy.el index 7634f09b1..3c34ae2c8 100644 --- a/modules/completion/ivy/autoload/ivy.el +++ b/modules/completion/ivy/autoload/ivy.el @@ -253,6 +253,7 @@ The point of this is to avoid Emacs locking up indexing massive file trees." (unless recursive " --maxdepth 1") " " (mapconcat #'shell-quote-argument args " ")))) + (setq deactivate-mark t) (counsel-rg (or query (when (doom-region-active-p)