mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 11:53:48 -05:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
343508e9fd |
@@ -5,6 +5,7 @@
|
|||||||
- **.PATCH**: Pull Request Title (PR Author) [PR Number](Link to PR)
|
- **.PATCH**: Pull Request Title (PR Author) [PR Number](Link to PR)
|
||||||
-->
|
-->
|
||||||
#### 6.7
|
#### 6.7
|
||||||
|
- **.2**: Fix infinity loop (on winvim) in FindParentVCSRoot (Eugenij-W) [#1095](https://github.com/preservim/nerdtree/pull/1095)
|
||||||
- **.1**: File Move: Escape existing directory name when looking for open files. (PhilRunninger) [#1094](https://github.com/preservim/nerdtree/pull/1094)
|
- **.1**: File Move: Escape existing directory name when looking for open files. (PhilRunninger) [#1094](https://github.com/preservim/nerdtree/pull/1094)
|
||||||
- **.0**: Open the parent directory when revealing a non-existent file with :NERDTreeFind (bouk) [#1090](https://github.com/preservim/nerdtree/pull/1090)
|
- **.0**: Open the parent directory when revealing a non-existent file with :NERDTreeFind (bouk) [#1090](https://github.com/preservim/nerdtree/pull/1090)
|
||||||
#### 6.6
|
#### 6.6
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ endfunction
|
|||||||
function! s:FindParentVCSRoot(path)
|
function! s:FindParentVCSRoot(path)
|
||||||
let l:path = a:path
|
let l:path = a:path
|
||||||
while !empty(l:path) &&
|
while !empty(l:path) &&
|
||||||
\ l:path._str() !~# '^\(\a:\\\|\/\)$' &&
|
\ l:path._str() !~# '^\(\a:[\\\/]\|\/\)$' &&
|
||||||
\ !isdirectory(l:path._str() . '/.git') &&
|
\ !isdirectory(l:path._str() . '/.git') &&
|
||||||
\ !isdirectory(l:path._str() . '/.svn') &&
|
\ !isdirectory(l:path._str() . '/.svn') &&
|
||||||
\ !isdirectory(l:path._str() . '/.hg') &&
|
\ !isdirectory(l:path._str() . '/.hg') &&
|
||||||
@@ -42,6 +42,6 @@ function! s:FindParentVCSRoot(path)
|
|||||||
\ !isdirectory(l:path._str() . '/_darcs')
|
\ !isdirectory(l:path._str() . '/_darcs')
|
||||||
let l:path = l:path.getParent()
|
let l:path = l:path.getParent()
|
||||||
endwhile
|
endwhile
|
||||||
return (empty(l:path) || l:path._str() =~# '^\(\a:\\\|\/\)$') ? a:path : l:path
|
return (empty(l:path) || l:path._str() =~# '^\(\a:[\\\/]\|\/\)$') ? a:path : l:path
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user