nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit ba3d43138a867c9116641e8b99d4e10bb72c2ec3
parent bc745b6e99888c97c7e8f6ff3b7e8f605cab5af1
Author: Dave Aitken <dave.aitken@gmail.com>
Date:   Fri,  6 Jan 2012 19:36:26 +0000

Added comment to clarify which part of the path is the 'drive' for windows network shares
Diffstat:
Mplugin/NERD_tree.vim | 1+
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -2110,6 +2110,7 @@ endfunction
 function! s:Path.extractDriveLetter(fullpath)
     if s:running_windows
         if a:fullpath =~ '^\(\\\\\|\/\/\)'
+            "For network shares, the 'drive' consists of the first two parts of the path, i.e. \\boxname\share
             let self.drive = substitute(a:fullpath, '^\(\(\\\\\|\/\/\)[^\\\/]*\(\\\|\/\)[^\\\/]*\).*', '\1', '')
             let self.drive = substitute(self.drive, '/', '\', "g")
         else