Skip to content

Commit d17ae7f

Browse files
committed
xref--find-ignores-arguments: Return "" if IGNORES is nil
1 parent 1cd4a5e commit d17ae7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lisp/progmodes/xref.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,8 @@ IGNORES is a list of glob patterns."
10641064
IGNORES is a list of glob patterns. DIR is an absolute
10651065
directory, used as the root of the ignore globs."
10661066
(cl-assert (not (string-match-p "\\`~" dir)))
1067-
(when ignores
1067+
(if (not ignores)
1068+
""
10681069
(concat
10691070
(shell-quote-argument "(")
10701071
" -path "

0 commit comments

Comments
 (0)