diff options
author | w0rp <devw0rp@gmail.com> | 2019-01-12 13:08:52 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2019-01-12 13:14:29 +0000 |
commit | 6644563949299ce60aadf338103d50315a034a6a (patch) | |
tree | b3ba8e44183af915c5c9b7378bbe40dc6862aa60 /ale_linters/javascript | |
parent | d8a53cc7a5c86cea4480b264eef4778ba16e4454 (diff) | |
download | ale-6644563949299ce60aadf338103d50315a034a6a.zip |
#2132 Remove the need for the hidden add_newline option by tweaking the flow command
Diffstat (limited to 'ale_linters/javascript')
-rwxr-xr-x | ale_linters/javascript/flow.vim | 5 |
1 files changed, 3 insertions, 2 deletions
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, \}) |