From bfc3a16bbc00f808b319a070c6fcbd37f32ee8e9 Mon Sep 17 00:00:00 2001 From: Danny McClanahan <1305167+cosmicexplorer@users.noreply.github.com> Date: Wed, 30 May 2018 22:15:43 -0700 Subject: [PATCH] set the correct current directory when creating bounce mode buffer --- helm-rg.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helm-rg.el b/helm-rg.el index 53e6443..c6a80fd 100644 --- a/helm-rg.el +++ b/helm-rg.el @@ -1553,6 +1553,8 @@ Merges stdout and stderr, and trims whitespace from the result." (with-helm-buffer (copy-to-buffer new-buf (point-min) (point-max))) (with-current-buffer new-buf + ;; TODO: add test to ensure we are in the same directory! + (cd helm-rg--current-dir) (helm-rg--bounce-mode) ;; Fix up, then advance past the end of the header. (helm-rg--freeze-header-for-bounce helm-rg--last-argv)