From a1bc7036dc662b8c38aaac0b4e2ea3bb5934a688 Mon Sep 17 00:00:00 2001 From: David Landell Date: Tue, 9 Feb 2021 20:53:10 +0100 Subject: [PATCH] Make sure initial toggle flags are propagated to results buffer (#115) --- rg.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rg.el b/rg.el index ca61e64..ce08a7f 100644 --- a/rg.el +++ b/rg.el @@ -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