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

Commit

Permalink
Clarify documentation for autoclose option.
Browse files Browse the repository at this point in the history
It doesn't "close the quickfix window automatically". I'm not even sure what
that is supposed to mean. It does not open the window when there are no errors,
and closes the existing window if there previously were but now aren't. I think.
  • Loading branch information
serhalp committed Mar 19, 2017
1 parent 3bd879d commit 08ea270
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ Jump to the definition of the variable under the cursor.

#### `g:flow#autoclose`

If this is set to `1`, the |quickfix| window opened when the plugin finds an error
will close automatically.
If this is set to `1`, the quickfix window will not be opened when there are
no errors, and will be automatically closed when previous errors are cleared.

Default is `0`.

Expand Down
4 changes: 2 additions & 2 deletions doc/vim-flow.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ VARIABLES *vim-flow-variables*

g:flow#autoclose *g:flow#autoclose*

If this is set to 1, the |quickfix| window opened when the plugin finds an error
will close automatically.
If this is set to 1, the |quickfix| window will not be opened when there are
no errors, and will be automatically closed when previous errors are cleared.

Default is 0.

Expand Down
2 changes: 1 addition & 1 deletion plugin/flow.vim
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let g:loaded_flow = 1

" Configuration switches:
" - enable: Typechecking is done on :w.
" - autoclose: Quickfix window closes automatically.
" - autoclose: Quickfix window closes automatically when there are no errors.
" - errjmp: Jump to errors after typechecking; default off.
" - qfsize: Let the plugin control the quickfix window size.
" - flowpath: Path to the flow executable - default is flow in path
Expand Down

0 comments on commit 08ea270

Please sign in to comment.