Fix #2351: counsel-rg errors on Windows
This commit is contained in:
parent
7a8bf22e41
commit
f548ab600c
2 changed files with 10 additions and 2 deletions
|
@ -207,6 +207,14 @@ evil-ex-specific constructs, so we disable it solely in evil-ex."
|
|||
;; of its own, on top of the defaults.
|
||||
(setq ivy-initial-inputs-alist nil)
|
||||
|
||||
;; REVIEW Fix #3215: prevents mingw throwing an error trying to expand / to an
|
||||
;; absolute path. Remove this when it is fixed upstream in counsel.
|
||||
(when (memq system-type '(windows-nt ms-dos))
|
||||
(setq counsel-rg-base-command
|
||||
(replace-regexp-in-string "--path-separator /"
|
||||
"--path-separator //"
|
||||
counsel-rg-base-command)))
|
||||
|
||||
;; Integrate with `helpful'
|
||||
(setq counsel-describe-function-function #'helpful-callable
|
||||
counsel-describe-variable-function #'helpful-variable)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue