diff --git a/projectile.el b/projectile.el index 40f3ddb16..4ba179427 100644 --- a/projectile.el +++ b/projectile.el @@ -4475,7 +4475,7 @@ installed to work." (list (projectile--read-search-string-with-default (format "Ripgrep %ssearch for" (if current-prefix-arg "regexp " ""))) current-prefix-arg)) - (let ((args (mapcar (lambda (val) (concat "--glob !" val)) + (let ((args (mapcar (lambda (val) (concat "--glob '!" val "'")) (append projectile-globally-ignored-files projectile-globally-ignored-directories)))) ;; we rely on the external packages ripgrep and rg for the actual search