Commit ab9a1559 authored by Aborn Jiang's avatar Aborn Jiang Committed by GitHub

Merge pull request #223 from sirn/remote-fix

Improve compatibility with remote files
parents b7479d0d d3eb20c7
......@@ -1536,9 +1536,12 @@ If RECURSIVE-P is non nil, find files will recursively."
(when (neo-path--file-equal-p iter-curr-dir neo-buffer--start-node)
(setq file-node-find-p t)
(throw 'return nil))
(when (neo-path--file-equal-p iter-curr-dir "/")
(setq file-node-find-p nil)
(throw 'return nil))))
(let ((niter-curr-dir (file-remote-p iter-curr-dir 'localname)))
(unless niter-curr-dir
(setq niter-curr-dir iter-curr-dir))
(when (neo-path--file-equal-p niter-curr-dir "/")
(setq file-node-find-p nil)
(throw 'return nil)))))
(when file-node-find-p
(dolist (p file-node-list)
(neo-buffer--set-expand p t))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment