Permalink
Browse files

Make sure to save the mru list when it has been modified upon the use…

…r's request
  • Loading branch information...
tomtom committed Nov 27, 2012
1 parent ed1dcde commit e0aa4bced0fefc910fdd3e6f4075354c55710734
Showing with 4 additions and 4 deletions.
  1. +4 −4 plugin/tmru.vim
View
@@ -4,7 +4,7 @@
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2007-04-13.
" @Last Change: 2012-11-27.
-" @Revision: 711
+" @Revision: 712
" GetLatestVimScripts: 1864 1 tmru.vim
if &cp || exists("loaded_tmru")
@@ -511,7 +511,7 @@ function! s:UnsetPersistent(world, selected) "{{{3
let mru[fidx][1]['sticky'] = 0
endif
endfor
- call s:MruStore(mru, {})
+ call s:MruStore(mru, {'save': 2})
let a:world.base = s:GetFilenames(mru)
call s:SetFilenameIndicators(a:world, mru)
let a:world.state = 'reset'
@@ -539,7 +539,7 @@ function! s:TogglePersistent(world, selected) "{{{3
call input("Press ENTER to continue")
echohl NONE
endif
- call s:MruStore(mru, {})
+ call s:MruStore(mru, {'save': 2})
let a:world.base = s:GetFilenames(mru)
call s:SetFilenameIndicators(a:world, mru)
let a:world.state = 'reset'
@@ -562,7 +562,7 @@ function! s:RemoveItem(world, selected) "{{{3
call remove(mru, fidx)
endif
endfor
- call s:MruStore(mru, {})
+ call s:MruStore(mru, {'save': 2})
call a:world.ResetSelected()
let a:world.base = s:GetFilenames(mru)
if idx > len(mru)

0 comments on commit e0aa4bc

Please sign in to comment.