Skip to content

Commit 62884a4

Browse files
committed
refactor: rename Path:isUnresolved to Path:isBroken.
1 parent 9eeacfd commit 62884a4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/nerdtree/path.vim

+5-5
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function! s:Path.cacheDisplayString() abort
6464
if self.isSymLink
6565
let self.cachedDisplayString = self.addDelimiter(self.cachedDisplayString) . ' -> '
6666
let self.cachedDisplayString = self.addDelimiter(self.cachedDisplayString) . self.symLinkDest
67-
if self.isUnresolved
67+
if self.isBroken
6868
let self.cachedDisplayString = self.addDelimiter(self.cachedDisplayString) . g:NERDTreeGlyphBroken
6969
endif
7070
endif
@@ -622,22 +622,22 @@ function! s:Path.readInfoFromDisk(fullpath)
622622
if isdirectory(a:fullpath)
623623
let self.isDirectory = 1
624624
let self.isReadOnly = 0
625-
let self.isUnresolved = 0
625+
let self.isBroken = 0
626626
elseif filereadable(a:fullpath)
627627
let self.isDirectory = 0
628628
let self.isReadOnly = filewritable(a:fullpath) ==# 0
629-
let self.isUnresolved = 0
629+
let self.isBroken = 0
630630
elseif ftype ==# 'link'
631631
let self.isDirectory = 0
632632
let self.isReadOnly = 0
633-
let self.isUnresolved = 1
633+
let self.isBroken = 1
634634
else
635635
call nerdtree#echoWarning('invalid ' . a:fullpath . 'file type: ' . ftype)
636636
throw 'NERDTree.InvalidArgumentsError: Invalid path = ' . a:fullpath
637637
endif
638638

639639
let self.isExecutable = 0
640-
if !self.isDirectory && !self.isUnresolved
640+
if !self.isDirectory && !self.isBroken
641641
let self.isExecutable = getfperm(a:fullpath) =~# 'x'
642642
endif
643643

0 commit comments

Comments
 (0)