Skip to content

Commit 0b68157

Browse files
committed
Change: Call rg with directory and pipe connection type
See <BurntSushi/ripgrep#951>. Thanks to @BurntSushi for his help.
1 parent cb18708 commit 0b68157

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

magit-todos.el

+2-4
Original file line numberDiff line numberDiff line change
@@ -583,17 +583,15 @@ This is a copy of `async-start-process' that does not override
583583
;; capture them and pass them in.
584584
(let ((depth (number-to-string depth))
585585
(timeout (number-to-string timeout))
586-
(default-directory directory)
587-
(process-connection-type 'pty))
586+
(process-connection-type 'pipe))
588587
(magit-todos--async-start-process "rg-scan-async" "nice"
589588
(apply-partially #'magit-todos--rg-scan-async-callback magit-status-buffer)
590589
"-n5"
591590
;; FIXME: Restore use of timeout when async.el issue is
592591
;; resolved. See
593592
;; <https://github.com/jwiegley/emacs-async/issues/101>.
594593
;; "timeout" timeout
595-
"rg" "--column"
596-
magit-todos-ag-search-regexp)))
594+
"rg" "--column" magit-todos-ag-search-regexp directory)))
597595

598596
(defun magit-todos--rg-scan-async-callback (magit-status-buffer process)
599597
"Callback for `magit-todos--rg-scan-async'."

0 commit comments

Comments
 (0)