Skip to content

Commit 153161c

Browse files
Updates to work against DanielG/ghc-mod#823.
1 parent 47811da commit 153161c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

autoload/ghcmod.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ function! ghcmod#get_visual_selection()
3232
return join(lines, "\n")
3333
endfunction
3434

35-
function! ghcmod#get_doc_url(path, module, fexp, line, col) "{{{
36-
let l:cmd = ghcmod#build_command(['imported-from', a:path, a:line, a:col, a:fexp])
35+
function! ghcmod#get_doc_url(path, line, col) "{{{
36+
let l:cmd = ghcmod#build_command(['imported-from', a:path, a:line, a:col])
3737
let l:output = ghcmod#system(l:cmd)
3838
let l:lines = split(l:output, '\n')
3939

autoload/ghcmod/command.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ function! ghcmod#command#opendoc(fexp, force, vismode) "{{{
288288
let l:line = line('.')
289289
let l:col = col('.')
290290

291-
let l:doc_url = ghcmod#get_doc_url(l:path, ghcmod#detect_module(), l:fexp, l:line, l:col)
291+
let l:doc_url = ghcmod#get_doc_url(l:path, l:line, l:col)
292292

293293
let l:bits = split(l:doc_url)
294294

@@ -336,7 +336,7 @@ function! ghcmod#command#echo_doc_url(fexp, force, vismode) "{{{
336336
let l:line = line('.')
337337
let l:col = col('.')
338338

339-
echo ghcmod#get_doc_url(l:path, ghcmod#detect_module(), l:fexp, l:line, l:col)
339+
echo ghcmod#get_doc_url(l:path, l:line, l:col)
340340
endfunction "}}}
341341

342342
" vim: set ts=2 sw=2 et fdm=marker:

0 commit comments

Comments
 (0)