From c2420a4b344a9337760981c451783f0ff9df8bbf Mon Sep 17 00:00:00 2001 From: Stanislav Arnaudov Date: Wed, 21 Nov 2018 21:26:35 +0100 Subject: [PATCH] Reverting the change in ee3f508f8cc854c96e7845e5ccbd86cf88cbbfe7 --- neotree.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/neotree.el b/neotree.el index 31355df..d7259ab 100644 --- a/neotree.el +++ b/neotree.el @@ -1148,8 +1148,7 @@ Return nil if DIR is not an existing directory." (let ((nfile (neo-path--strip file)) (ndir (neo-path--strip dir))) (setq ndir (concat ndir "/")) - (cl-some (lambda (n) (file-equal-p (concat (file-truename ndir) nfile) n)) - (mapc 'file-truename (directory-files-recursively ndir ".*"))))) + (file-in-directory-p nfile ndir))) (defun neo-util--kill-buffers-for-path (path) "Kill all buffers for files in PATH."