diff --git a/autoload/ghcmod.vim b/autoload/ghcmod.vim index 5968659..346021b 100644 --- a/autoload/ghcmod.vim +++ b/autoload/ghcmod.vim @@ -32,8 +32,8 @@ function! ghcmod#get_visual_selection() return join(lines, "\n") endfunction -function! ghcmod#get_doc_url(path, module, fexp, line, col) "{{{ - let l:cmd = ghcmod#build_command(['imported-from', a:path, a:line, a:col, a:fexp]) +function! ghcmod#get_doc_url(path, line, col) "{{{ + let l:cmd = ghcmod#build_command(['imported-from', a:path, a:line, a:col]) let l:output = ghcmod#system(l:cmd) let l:lines = split(l:output, '\n') diff --git a/autoload/ghcmod/command.vim b/autoload/ghcmod/command.vim index 3ff4cf8..9b41917 100644 --- a/autoload/ghcmod/command.vim +++ b/autoload/ghcmod/command.vim @@ -288,7 +288,7 @@ function! ghcmod#command#opendoc(fexp, force, vismode) "{{{ let l:line = line('.') let l:col = col('.') - let l:doc_url = ghcmod#get_doc_url(l:path, ghcmod#detect_module(), l:fexp, l:line, l:col) + let l:doc_url = ghcmod#get_doc_url(l:path, l:line, l:col) let l:bits = split(l:doc_url) @@ -336,7 +336,7 @@ function! ghcmod#command#echo_doc_url(fexp, force, vismode) "{{{ let l:line = line('.') let l:col = col('.') - echo ghcmod#get_doc_url(l:path, ghcmod#detect_module(), l:fexp, l:line, l:col) + echo ghcmod#get_doc_url(l:path, l:line, l:col) endfunction "}}} " vim: set ts=2 sw=2 et fdm=marker: