Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff8fe7d

Browse files
committed
Ignore stderr correctly
Fixes #76 .
1 parent caf086c commit ff8fe7d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

autoload/ghcmod.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ endfunction "}}}
158158
function! ghcmod#async_make(type, path, callback) "{{{
159159
let l:tmpfile = tempname()
160160
let l:args = s:build_make_command(a:type, a:path)
161-
let l:proc = s:plineopen2([{'args': l:args, 'fd': { 'stdin': '', 'stdout': l:tmpfile, 'stderr': '' }}])
161+
let l:proc = s:plineopen3([{'args': l:args, 'fd': { 'stdin': '', 'stdout': l:tmpfile, 'stderr': '' }}])
162162
let l:obj = {
163163
\ 'proc': l:proc,
164164
\ 'tmpfile': l:tmpfile,
@@ -286,17 +286,17 @@ function! ghcmod#system(...) "{{{
286286
return l:ret
287287
endfunction "}}}
288288

289-
function! s:plineopen2(...) "{{{
289+
function! s:plineopen3(...) "{{{
290290
lcd `=ghcmod#basedir()`
291-
let l:ret = call('vimproc#plineopen2', a:000)
291+
let l:ret = call('vimproc#plineopen3', a:000)
292292
lcd -
293293
return l:ret
294294
endfunction "}}}
295295

296296
function! s:system(type, args) "{{{
297297
let l:tmpfile = tempname()
298298
try
299-
let l:proc = s:plineopen2([{'args': a:args, 'fd': { 'stdin': '', 'stdout': l:tmpfile, 'stderr': '' }}])
299+
let l:proc = s:plineopen3([{'args': a:args, 'fd': { 'stdin': '', 'stdout': l:tmpfile, 'stderr': '' }}])
300300
let [l:cond, l:status] = ghcmod#util#wait(l:proc)
301301
let l:tries = 1
302302
while l:cond ==# 'run'

0 commit comments

Comments
 (0)