Skip to content

Commit

Permalink
Make sure initial toggle flags are propagated to results buffer (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
dajva committed Feb 9, 2021
1 parent c342666 commit a1bc703
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rg.el
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,10 @@ executing. FLAGS is additional command line flags to use in the search."
(unless (and (file-directory-p dir) (file-readable-p dir))
(setq dir default-directory))
(rg-apply-case-flag pattern)
(let ((command (rg-build-command
pattern files literal
(append rg-initial-toggle-flags flags)))
(let* ((flags (append rg-initial-toggle-flags flags))
(command (rg-build-command
pattern files literal
flags))
confirmed)
(setq dir (file-name-as-directory (expand-file-name dir)))
(if confirm
Expand Down

0 comments on commit a1bc703

Please sign in to comment.