Only when using globpath()
This commit is contained in:
parent
5dfe7f245b
commit
269a3f1350
@ -302,7 +302,7 @@ fu! s:GlobPath(dirs, depth)
|
|||||||
let [dnf, depth] = [ctrlp#dirnfile(entries), a:depth + 1]
|
let [dnf, depth] = [ctrlp#dirnfile(entries), a:depth + 1]
|
||||||
cal extend(g:ctrlp_allfiles, dnf[1])
|
cal extend(g:ctrlp_allfiles, dnf[1])
|
||||||
if !empty(dnf[0]) && !s:maxf(len(g:ctrlp_allfiles)) && depth <= s:maxdepth
|
if !empty(dnf[0]) && !s:maxf(len(g:ctrlp_allfiles)) && depth <= s:maxdepth
|
||||||
sil! cal ctrlp#progress(len(g:ctrlp_allfiles))
|
sil! cal ctrlp#progress(len(g:ctrlp_allfiles), 1)
|
||||||
cal s:GlobPath(join(dnf[0], ','), depth)
|
cal s:GlobPath(join(dnf[0], ','), depth)
|
||||||
en
|
en
|
||||||
endf
|
endf
|
||||||
@ -1116,11 +1116,11 @@ fu! s:dismrk()
|
|||||||
\ '%<'.join(values(map(copy(s:marked), 'split(v:val, "[\\/]")[-1]')), ', ')
|
\ '%<'.join(values(map(copy(s:marked), 'split(v:val, "[\\/]")[-1]')), ', ')
|
||||||
endf
|
endf
|
||||||
|
|
||||||
fu! ctrlp#progress(enum)
|
fu! ctrlp#progress(enum, ...)
|
||||||
if has('macunix') || has('mac') | sl 1m | en
|
if has('macunix') || has('mac') | sl 1m | en
|
||||||
let txt = ' (press ctrl-c to abort)'
|
let txt = a:0 ? '(press ctrl-c to abort)' : ''
|
||||||
let &l:stl = s:status != {} ? call(s:status['prog'], [a:enum])
|
let &l:stl = s:status != {} ? call(s:status['prog'], [a:enum])
|
||||||
\ : '%#CtrlPStats# '.a:enum.' %*'.txt.'%=%<%#CtrlPMode2# '.s:dyncwd.' %*'
|
\ : '%#CtrlPStats# '.a:enum.' %* '.txt.'%=%<%#CtrlPMode2# '.s:dyncwd.' %*'
|
||||||
redraws
|
redraws
|
||||||
endf
|
endf
|
||||||
" Paths {{{2
|
" Paths {{{2
|
||||||
|
Loading…
Reference in New Issue
Block a user