Skip to content

Commit

Permalink
set the correct current directory when creating bounce mode buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed May 31, 2018
1 parent 87c09d5 commit bfc3a16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helm-rg.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bfc3a16

Please # to comment.