Skip to content

Commit

Permalink
Revert "Avoid unnecessary calling s:load() on SourceEnter"
Browse files Browse the repository at this point in the history
Because complete synchronization is not possible.

This reverts commit 434cbab.
  • Loading branch information
thinca committed Sep 28, 2008
1 parent d6eb39d commit 2ce1b8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions autoload/ku/file_mru.vim
Expand Up @@ -4,7 +4,8 @@
" License: NYSL <http://www.kmonos.net/nysl/index.en.html>
" Variables "{{{1

" s:mru_files = [{'path': full_path, 'time': localtime()}, ...]
" [ { 'path' : full_path, 'time' : localtime()}, ... ]
let s:mru_files = []

" s:cached_items = [item, ...]

Expand All @@ -31,6 +32,7 @@ call s:set_default('g:ku_file_mru_limit', 100)
" Interface "{{{1
function! ku#file_mru#event_handler(event, ...) "{{{2
if a:event ==# 'SourceEnter'
call s:load()
let s:cached_items = map(copy(s:mru_files), '{
\ "abbr": fnamemodify(v:val.path, ":~:."),
\ "word": v:val.path,
Expand Down Expand Up @@ -104,8 +106,6 @@ function! s:load() "{{{2
endif
endfunction

call s:load() " To initialize s:mru_files whenever this file is loaded.




Expand Down

0 comments on commit 2ce1b8d

Please sign in to comment.