nerdtree/lib/nerdtree
Jason Franklin a019486dc8 Fix unstable behavior in "NERDTreeUI.getPath()"
This commit prevents "NERDTreeUI.getPath()" from returning a "Path"
object even when no tree node was selected.  Previously, positioning
your cursor on one of the blank lines above the tree and running...

  :echo g:NERDTreeFileNode.GetSelected()

... could potentially return the path for the current working
directory (your working directory needs to be under the tree root).
This is because the constructor for "Path" objects returns a "Path"
for the current working directory when passed an empty string.  So,
we need to short circuit the "getPath()" function for lines that
cannot possibly be tree nodes.

This solves the problem for "GetSelected()" because that method uses
the "getPath()" method from the "UI" class to do its work.

Note that this bug only presented for me on *nix systems.
2018-01-06 10:31:15 -05:00
..
bookmark.vim Edit stale commentary and add proper sigils 2017-07-14 18:02:02 -04:00
creator.vim Add back support for "b:NERDTreeRoot" (#765) 2017-11-14 18:36:09 -05:00
event.vim add proper events and make the notifier class generic 2014-07-17 20:18:09 +01:00
flag_set.vim Add modelines 2017-12-17 08:43:43 -05:00
key_map.vim move nerdtree#treeExists.* methods into the NERDTree class 2014-07-17 20:31:17 +01:00
menu_controller.vim move the class files out of the plugin dir 2013-04-13 20:32:25 +01:00
menu_item.vim correct invalid reference to MenuController 2014-02-01 20:56:40 +09:00
nerdtree.vim Add modelines 2017-12-17 08:43:43 -05:00
notifier.vim Add modelines 2017-12-17 08:43:43 -05:00
opener.vim Revert change to tab opening method (#766) 2017-11-18 09:50:40 -05:00
path.vim Improve the code style in a "Path" method 2018-01-06 08:41:55 -05:00
tree_dir_node.vim Revert the bugfix from pull request #785 2018-01-05 08:32:03 -05:00
tree_file_node.vim Improve the style in a "TreeFileNode" method 2018-01-06 09:02:10 -05:00
ui.vim Fix unstable behavior in "NERDTreeUI.getPath()" 2018-01-06 10:31:15 -05:00