Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Fix for https://github.com/flowtype/vim-flow/issues/75 #79

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autoload/flowcomplete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function! flowcomplete#Complete(findstart, base)

" Pass the buffer to flow.
let buffer = join(lines, "\n")
let command = g:flow#flowpath.' autocomplete "'.expand('%:p').'"'
let command = g:flow#flowpath.' autocomplete --quiet "'.expand('%:p').'"'
let result = system(command, buffer)

if result =~ '^Error: not enough type information to autocomplete' ||
Expand Down
2 changes: 1 addition & 1 deletion plugin/flow.vim
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ endfunction
function! flow#get_type()
let pos = line('.').' '.col('.')
let path = ' --path '.fnameescape(expand('%'))
let cmd = g:flow#flowpath.' type-at-pos '.pos.path
let cmd = g:flow#flowpath.' type-at-pos --quiet '.pos.path
let stdin = join(getline(1,'$'), "\n")

let output = 'FlowType: '.system(cmd, stdin)
Expand Down