Fix symlink following

* Broken by 64dca5ec
This commit is contained in:
Kien N 2011-12-21 09:08:14 +07:00
parent 72e3aba0e2
commit 2a598aeea9
2 changed files with 6 additions and 6 deletions

View File

@ -175,12 +175,12 @@ fu! s:DirAndFile(entries)
en | el en | el
cal add(items[0], each) cal add(items[0], each)
en en
el elsei etype == 'link'
if s:folsym if s:folsym
cal add(items[1], each) cal add(items[!isdirectory(each)], each)
el | if etype != 'link' en
cal add(items[1], each) el
en | en cal add(items[1], each)
en en
endfo endfo
retu items retu items

View File

@ -10,7 +10,7 @@ if exists('g:loaded_ctrlp_line') && g:loaded_ctrlp_line
en en
let g:loaded_ctrlp_line = 1 let g:loaded_ctrlp_line = 1
let s:line_var = ['ctrlp#line#init()', 'ctrlp#line#accept', 'lines', 'line'] let s:line_var = ['ctrlp#line#init()', 'ctrlp#line#accept', 'lines', 'lns']
let g:ctrlp_ext_vars = exists('g:ctrlp_ext_vars') && !empty(g:ctrlp_ext_vars) let g:ctrlp_ext_vars = exists('g:ctrlp_ext_vars') && !empty(g:ctrlp_ext_vars)
\ ? add(g:ctrlp_ext_vars, s:line_var) : [s:line_var] \ ? add(g:ctrlp_ext_vars, s:line_var) : [s:line_var]