Skip to content

Commit 75ed9bc

Browse files
committed
try ctrlp_root_markers before looks up to root
fixes #333
1 parent 7fa89fe commit 75ed9bc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

autoload/ctrlp.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,6 +1763,7 @@ fu! ctrlp#setpathmode(pmode, ...)
17631763
let spath = a:0 ? a:1 : s:crfpath
17641764
let markers = ['.git', '.hg', '.svn', '.bzr', '_darcs']
17651765
if type(s:rmarkers) == 3 && !empty(s:rmarkers)
1766+
if s:findroot(spath, s:rmarkers, 0, 0) != [] | retu 1 | en
17661767
cal filter(markers, 'index(s:rmarkers, v:val) < 0')
17671768
let markers = s:rmarkers + markers
17681769
en

0 commit comments

Comments
 (0)