Minor refactors & comment revision across the board

This commit is contained in:
Henrik Lissner 2019-12-31 19:17:55 -05:00
parent d1b597fde4
commit 445ba1a46d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 20 additions and 16 deletions

View file

@ -39,10 +39,9 @@
"Collapse an expanded directory node or go to the parent node."
(interactive)
(when-let (node (neo-buffer--get-filename-current-line))
(if (file-directory-p node)
(if (neo-buffer--expanded-node-p node)
(+neotree/collapse)
(neotree-select-up-node))
(if (and (file-directory-p node)
(neo-buffer--expanded-node-p node))
(+neotree/collapse)
(neotree-select-up-node))))
;;;###autoload