Skip to content

Commit

Permalink
Updates to work against DanielG/ghc-mod#823.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlohamalainen committed Aug 14, 2017
1 parent 47811da commit 153161c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions autoload/ghcmod.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
4 changes: 2 additions & 2 deletions autoload/ghcmod/command.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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:

0 comments on commit 153161c

Please sign in to comment.