Skip to content

Commit 7f74368

Browse files
committed
Merge pull request #183 from ludovicchabant/markers
Change how project roots are found.
2 parents 0fb2c58 + 9c2a31f commit 7f74368

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

autoload/ctrlp.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1644,8 +1644,8 @@ fu! ctrlp#setpathmode(pmode, ...)
16441644
let spath = a:0 ? a:1 : s:crfpath
16451645
let markers = ['.git', '.hg', '.svn', '.bzr', '_darcs']
16461646
if type(s:rmarkers) == 3 && !empty(s:rmarkers)
1647-
if s:findroot(spath, s:rmarkers, 0, 0) != [] | retu 1 | en
16481647
cal filter(markers, 'index(s:rmarkers, v:val) < 0')
1648+
let markers = s:rmarkers + markers
16491649
en
16501650
if s:findroot(spath, markers, 0, 0) != [] | retu 1 | en
16511651
en

0 commit comments

Comments
 (0)