Revert "Keep s:mrufs separated"

This reverts commit fec6cf52ef.
This commit is contained in:
Kien N 2012-04-08 05:08:35 +07:00
parent 59f64d698b
commit f1dd272388

View File

@ -70,24 +70,24 @@ fu! s:savetofile(mrufs)
endf endf
" Public {{{1 " Public {{{1
fu! ctrlp#mrufiles#refresh(...) fu! ctrlp#mrufiles#refresh(...)
let mrufs = s:mergelists() let s:mrufs = s:mergelists()
cal filter(mrufs, '!empty(ctrlp#utils#glob(v:val, 1)) && !s:excl(v:val)') cal filter(s:mrufs, '!empty(ctrlp#utils#glob(v:val, 1)) && !s:excl(v:val)')
if exists('+ssl') if exists('+ssl')
cal map(mrufs, 'tr(v:val, "/", "\\")') cal map(s:mrufs, 'tr(v:val, "/", "\\")')
cal filter(mrufs, 'count(mrufs, v:val) == 1') cal filter(s:mrufs, 'count(s:mrufs, v:val) == 1')
en en
cal s:savetofile(mrufs) cal s:savetofile(s:mrufs)
retu a:0 && a:1 == 'raw' ? [] : s:reformat(mrufs) retu a:0 && a:1 == 'raw' ? [] : s:reformat(copy(s:mrufs))
endf endf
fu! ctrlp#mrufiles#remove(files) fu! ctrlp#mrufiles#remove(files)
let mrufs = [] let s:mrufs = []
if a:files != [] if a:files != []
let mrufs = s:mergelists() let s:mrufs = s:mergelists()
cal filter(mrufs, 'index(a:files, v:val) < 0') cal filter(s:mrufs, 'index(a:files, v:val) < 0')
en en
cal s:savetofile(mrufs) cal s:savetofile(s:mrufs)
retu s:reformat(mrufs) retu s:reformat(copy(s:mrufs))
endf endf
fu! ctrlp#mrufiles#list(...) fu! ctrlp#mrufiles#list(...)