From b49cd99eeaaa65d8ab7f340be7d97b63402bd951 Mon Sep 17 00:00:00 2001 From: Kien N Date: Tue, 5 Jun 2012 15:51:02 +0700 Subject: [PATCH] Make the markers unique --- autoload/ctrlp.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim index 2af7b1c..a04ca80 100644 --- a/autoload/ctrlp.vim +++ b/autoload/ctrlp.vim @@ -822,9 +822,10 @@ fu! s:SetWD(...) cal ctrlp#setdir(s:crfpath) en if pathmode == 1 | retu | en - let markers = ['root.dir', '.git', '.hg/', '.svn/', '.bzr/', '_darcs/'] + let markers = ['.git', '.hg', '.svn', '.bzr', '_darcs'] if type(s:rmarkers) == 3 && !empty(s:rmarkers) cal extend(markers, s:rmarkers, 0) + let markers = reverse(filter(reverse(markers), 'count(markers, v:val) == 1')) en for marker in markers cal s:findroot(s:dyncwd, marker, 0, 0)