xref--find-ignores-arguments: Return "" if IGNORES is nil

This commit is contained in:
Dmitry Gutov 2019-05-03 02:48:44 +03:00
parent 1cd4a5e5e5
commit d17ae7f5af

View file

@ -1064,7 +1064,8 @@ IGNORES is a list of glob patterns."
IGNORES is a list of glob patterns. DIR is an absolute
directory, used as the root of the ignore globs."
(cl-assert (not (string-match-p "\\`~" dir)))
(when ignores
(if (not ignores)
""
(concat
(shell-quote-argument "(")
" -path "