Fix gf when file hasn't been required yet

Closes #44.
This commit is contained in:
Tim Pope 2013-01-25 11:22:10 -05:00
parent 511a123421
commit f653f18e64

View File

@ -739,7 +739,7 @@ function! s:decode_url(url) abort
endfunction endfunction
function! foreplay#source(symbol) abort function! foreplay#source(symbol) abort
let options = {'client': foreplay#local_client()} let options = {'client': foreplay#local_client(), 'session': 0}
let cmd = let cmd =
\ '(when-let [v (resolve ' . s:qsym(a:symbol) .')]' . \ '(when-let [v (resolve ' . s:qsym(a:symbol) .')]' .
\ ' (when-let [filepath (:file (meta v))]' . \ ' (when-let [filepath (:file (meta v))]' .
@ -795,7 +795,7 @@ augroup END
" Go to file {{{1 " Go to file {{{1
function! foreplay#findfile(path) abort function! foreplay#findfile(path) abort
let options = {'client': foreplay#local_client(), 'ns': foreplay#ns(), 'session': 0} let options = {'client': foreplay#local_client(), 'session': 0}
let cmd = let cmd =
\ '(symbol' . \ '(symbol' .