summaryrefslogtreecommitdiff
path: root/helm-grep.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-10-11 08:17:11 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-10-11 08:17:11 +0200
commite67babe76119168d87d8dda51106d9e4ce8c84cb (patch)
tree400d0313458ad0080820c18b9262f8e88e9e9dc5 /helm-grep.el
parent8529bbd8a850bc0c212c38120621f2b2cc8a7656 (diff)
Reuse window when switching OW from grep or moccur (#1893)
* helm-grep.el (helm-grep-action): Use helm-window-other-window. * helm-regexp.el (helm-moccur-action): Same.
Diffstat (limited to 'helm-grep.el')
-rw-r--r--helm-grep.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/helm-grep.el b/helm-grep.el
index 2e7b95c3..600981e1 100644
--- a/helm-grep.el
+++ b/helm-grep.el
@@ -605,8 +605,8 @@ WHERE can be one of other-window, other-frame."
(fname (if tramp-host
(concat tramp-prefix loc-fname) loc-fname)))
(cl-case where
- (other-window (helm-window-other-window
- (find-file-noselect fname)))
+ (other-window (helm-window-show-buffers
+ (list (find-file-noselect fname)) t))
(other-frame (find-file-other-frame fname))
(grep (helm-grep-save-results-1))
(pdf (if helm-pdfgrep-default-read-command