`fasd-find-file` fails to distinguish between 1 and nil
fasd-find-file
's docstring says it searches only directories if its prefix argument is positive, but it fails to treat 1 as a positive number, because it assumes that 1 signifies a nil prefix argument instead.
(pcase (prefix-numeric-value prefix)
(`-1 " -f ")
((pred (< 1)) " -d ")
(_ (concat " " fasd-standard-search " ")))
I think the above snippet should just use prefix
directly instead of prefix-numeric-value
.