Permalink
Browse files

s:MruRetrieve(...): call tlib#persistent#Get() only once

  • Loading branch information...
1 parent 9187456 commit c92a7e4995620cb4bc8cf890c070cb087bbe1b71 @tomtom committed Jun 21, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 plugin/tmru.vim
View
@@ -203,8 +203,9 @@ function! s:MruRetrieve(...)
let read_data = 1
endif
if read_data
- let g:TMRU = get(tlib#persistent#Get(g:tmru_file), 'tmru', '')
- let g:TMRU_METADATA = get(tlib#persistent#Get(g:tmru_file), 'metadata', '')
+ let data = tlib#persistent#Get(g:tmru_file)
+ let g:TMRU = get(data, 'tmru', '')
+ let g:TMRU_METADATA = get(data, 'metadata', '')
let s:tmru_mtime = getftime(g:tmru_file)
endif
endif

0 comments on commit c92a7e4

Please sign in to comment.