From f1dd272388c6cea9c0244fc0d7f5951f15342dd8 Mon Sep 17 00:00:00 2001 From: Kien N Date: Sun, 8 Apr 2012 05:08:35 +0700 Subject: [PATCH] Revert "Keep s:mrufs separated" This reverts commit fec6cf52ef49bbfad85208079e435d68156206ba. --- autoload/ctrlp/mrufiles.vim | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/autoload/ctrlp/mrufiles.vim b/autoload/ctrlp/mrufiles.vim index afc552f..72b6e3f 100644 --- a/autoload/ctrlp/mrufiles.vim +++ b/autoload/ctrlp/mrufiles.vim @@ -70,24 +70,24 @@ fu! s:savetofile(mrufs) endf " Public {{{1 fu! ctrlp#mrufiles#refresh(...) - let mrufs = s:mergelists() - cal filter(mrufs, '!empty(ctrlp#utils#glob(v:val, 1)) && !s:excl(v:val)') + let s:mrufs = s:mergelists() + cal filter(s:mrufs, '!empty(ctrlp#utils#glob(v:val, 1)) && !s:excl(v:val)') if exists('+ssl') - cal map(mrufs, 'tr(v:val, "/", "\\")') - cal filter(mrufs, 'count(mrufs, v:val) == 1') + cal map(s:mrufs, 'tr(v:val, "/", "\\")') + cal filter(s:mrufs, 'count(s:mrufs, v:val) == 1') en - cal s:savetofile(mrufs) - retu a:0 && a:1 == 'raw' ? [] : s:reformat(mrufs) + cal s:savetofile(s:mrufs) + retu a:0 && a:1 == 'raw' ? [] : s:reformat(copy(s:mrufs)) endf fu! ctrlp#mrufiles#remove(files) - let mrufs = [] + let s:mrufs = [] if a:files != [] - let mrufs = s:mergelists() - cal filter(mrufs, 'index(a:files, v:val) < 0') + let s:mrufs = s:mergelists() + cal filter(s:mrufs, 'index(a:files, v:val) < 0') en - cal s:savetofile(mrufs) - retu s:reformat(mrufs) + cal s:savetofile(s:mrufs) + retu s:reformat(copy(s:mrufs)) endf fu! ctrlp#mrufiles#list(...)