Skip to content

Commit

Permalink
Reverting the change in ee3f508
Browse files Browse the repository at this point in the history
  • Loading branch information
palikar committed Nov 21, 2018
1 parent f66e8be commit c2420a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions neotree.el
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit c2420a4

Please sign in to comment.