Skip to content

Commit

Permalink
fixed some old names
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcWeber committed Dec 31, 2009
1 parent f5f89af commit f900f14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion autoload/cached_interpretation_of_file.vim
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let s:c['cache_dir'] = get(s:c, 'cache_dir', expand('$HOME').'/.vim-cache')
function! cached_interpretation_of_file#ScanIfNewer(file, opts)
let cache = get(a:opts, 'fileCache', 0)
let file = expand(a:file) " simple kind of normalization. necessary when using file caching
let Func = get(a:opts, 'scan_func', library#Function('library#Id'))
let Func = get(a:opts, 'scan_func', funcref#Function('return ARGS[0]'))
let asLines = get(a:opts, 'asLines', 1)
let func_as_string = string(Func)
let path = ['scanned_files',func_as_string]
Expand Down
4 changes: 2 additions & 2 deletions autoload/funcref.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

" vim requires that the function has already been loaded
" That's why I'm using a faked function reference type here
" library#Function("Foo", { 'args' : [2, "foo"], 'self' : dict}) will create a closure. args
" funcref#Function("Foo", { 'args' : [2, "foo"], 'self' : dict}) will create a closure. args
" these args + args passed to Call will be the list of args passed to call()
" optional self can be the "object".
function! funcref#Function(name,...)
Expand Down Expand Up @@ -45,7 +45,7 @@ function! funcref#Call(...)
\ || Fun[:len('debug ')-1] == 'debug ')
" it doesn't make sense to list all vim commands here
" So if you want to execute another action consider using
" library#Function('exec '.string('aw')) or such
" funcref#Function('exec '.string('aw')) or such

" function is a String, call exec
let ARGS = args[1]
Expand Down

0 comments on commit f900f14

Please sign in to comment.