From 6644563949299ce60aadf338103d50315a034a6a Mon Sep 17 00:00:00 2001 From: w0rp Date: Sat, 12 Jan 2019 13:08:52 +0000 Subject: #2132 Remove the need for the hidden add_newline option by tweaking the flow command --- ale_linters/javascript/flow.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ale_linters/javascript/flow.vim') diff --git a/ale_linters/javascript/flow.vim b/ale_linters/javascript/flow.vim index cdb289c7..a4664fda 100755 --- a/ale_linters/javascript/flow.vim +++ b/ale_linters/javascript/flow.vim @@ -54,7 +54,8 @@ function! ale_linters#javascript#flow#GetCommand(buffer, version_lines) abort return ale#Escape(l:executable) \ . ' check-contents' \ . (l:use_respect_pragma ? ' --respect-pragma': '') - \ . ' --json --from ale %s' + \ . ' --json --from ale %s < %t' + \ . (!has('win32') ? '; echo' : '') endfunction " Filter lines of flow output until we find the first line where the JSON @@ -172,5 +173,5 @@ call ale#linter#Define('javascript', { \ {'callback': 'ale_linters#javascript#flow#GetCommand'}, \ ], \ 'callback': 'ale_linters#javascript#flow#Handle', -\ 'add_newline': !has('win32'), +\ 'read_buffer': 0, \}) -- cgit v1.2.3