parent
76f4f42d50
commit
50e494d635
@ -38,13 +38,14 @@ fu! s:chop(mrufs)
|
|||||||
retu a:mrufs
|
retu a:mrufs
|
||||||
endf
|
endf
|
||||||
|
|
||||||
fu! s:reformat(mrufs)
|
fu! s:reformat(mrufs, ...)
|
||||||
let cwd = getcwd()
|
let cwd = getcwd()
|
||||||
let cwd .= cwd !~ '[\/]$' ? ctrlp#utils#lash() : ''
|
let cwd .= cwd !~ '[\/]$' ? ctrlp#utils#lash() : ''
|
||||||
if {s:re}
|
if {s:re}
|
||||||
let cwd = exists('+ssl') ? tr(cwd, '/', '\') : cwd
|
let cwd = exists('+ssl') ? tr(cwd, '/', '\') : cwd
|
||||||
cal filter(a:mrufs, '!stridx(v:val, cwd)')
|
cal filter(a:mrufs, '!stridx(v:val, cwd)')
|
||||||
en
|
en
|
||||||
|
if a:0 && a:1 == 'raw' | retu a:mrufs | en
|
||||||
let idx = strlen(cwd)
|
let idx = strlen(cwd)
|
||||||
if exists('+ssl') && &ssl
|
if exists('+ssl') && &ssl
|
||||||
let cwd = tr(cwd, '\', '/')
|
let cwd = tr(cwd, '\', '/')
|
||||||
@ -117,7 +118,8 @@ fu! ctrlp#mrufiles#add(fn)
|
|||||||
endf
|
endf
|
||||||
|
|
||||||
fu! ctrlp#mrufiles#list(...)
|
fu! ctrlp#mrufiles#list(...)
|
||||||
retu a:0 ? a:1 == 'raw' ? s:mergelists() : 0 : s:reformat(s:mergelists())
|
retu a:0 ? a:1 == 'raw' ? s:reformat(s:mergelists(), a:1) : 0
|
||||||
|
\ : s:reformat(s:mergelists())
|
||||||
endf
|
endf
|
||||||
|
|
||||||
fu! ctrlp#mrufiles#bufs()
|
fu! ctrlp#mrufiles#bufs()
|
||||||
|
Loading…
Reference in New Issue
Block a user