rejeep / f.el

Modern API for working with files and directories in Emacs
GNU General Public License v3.0
680 stars 68 forks source link

[Bug]: f-descendant and others give wrong results on dirs that share a prefix. #126

Closed ilitzroth closed 1 year ago

ilitzroth commented 1 year ago

Expected behavior

(f-descendant-of-p "libacbusutils/modelutils.hpp" "libacbus") -> nil

Actual behavior

(f-descendant-of-p "libacbusutils/modelutils.hpp" "libacbus") -> t

f.el version

master

Emacs version

28.1

Relevant code or log output

No response

Phundrak commented 1 year ago

Thanks for the bug report! It is indeed an error, I’ll look into it.

Phundrak commented 1 year ago

Can you try the branch fix/issue-126 and see if it resolves this issue on your side?