nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit f4df03836662b0a32466861bd893db602c39f3aa
parent 5fc48b0b1363749c65512e0d8f445b201ea67831
Author: Jason Franklin <j_fra@fastmail.us>
Date:   Sat,  6 Jan 2018 08:35:34 -0500

Refactor the "Path" constructor

Diffstat:
Mlib/nerdtree/path.vim | 15+++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/lib/nerdtree/path.vim b/lib/nerdtree/path.vim
@@ -541,17 +541,16 @@ function! s:Path.equals(path)
     return self.str() ==# a:path.str()
 endfunction
 
-" FUNCTION: Path.New() {{{1
-" The Constructor for the Path object
-function! s:Path.New(path)
-    let newPath = copy(self)
+" FUNCTION: Path.New(pathStr) {{{1
+function! s:Path.New(pathStr)
+    let l:newPath = copy(self)
 
-    call newPath.readInfoFromDisk(s:Path.AbsolutePathFor(a:path))
+    call l:newPath.readInfoFromDisk(s:Path.AbsolutePathFor(a:pathStr))
 
-    let newPath.cachedDisplayString = ""
-    let newPath.flagSet = g:NERDTreeFlagSet.New()
+    let l:newPath.cachedDisplayString = ''
+    let l:newPath.flagSet = g:NERDTreeFlagSet.New()
 
-    return newPath
+    return l:newPath
 endfunction
 
 " FUNCTION: Path.Slash() {{{1