tools/neotree: refresh pane when jumping to it

This commit is contained in:
Henrik Lissner 2018-01-01 21:19:49 -05:00
parent f646c969e7
commit 41388f78af
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -9,13 +9,15 @@
(require 'neotree)
(cond ((and (neo-global--window-exists-p)
(get-buffer-window neo-buffer-name t))
(neotree-find path project-root))
(neotree-find path project-root)
(neotree-refresh))
((not (and (neo-global--window-exists-p)
(equal (file-truename (neo-global--with-buffer neo-buffer--start-node))
(file-truename project-root))))
(neotree-dir project-root)
(neotree-find path project-root))
(t (neotree-find path project-root)))))
(t
(neotree-find path project-root)))))
;;;###autoload
(defun +neotree/collapse-or-up ()