From ba3d43138a867c9116641e8b99d4e10bb72c2ec3 Mon Sep 17 00:00:00 2001 From: Dave Aitken Date: Fri, 6 Jan 2012 19:36:26 +0000 Subject: [PATCH] Added comment to clarify which part of the path is the 'drive' for windows network shares --- plugin/NERD_tree.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index aae0f18..44abf7f 100644 --- 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