Deactivate mark after successful file search

Fixes #2523
This commit is contained in:
Henrik Lissner 2020-02-11 13:36:23 -05:00
parent 9bd3d66617
commit 3b6fd1b360
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 2 additions and 0 deletions

View file

@ -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)))

View file

@ -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)