Skip to content

Commit

Permalink
list: rename setting name
Browse files Browse the repository at this point in the history
  • Loading branch information
fatih committed Nov 26, 2015
1 parent 056a911 commit ddfc8f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions autoload/go/list.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
" Window opens the location list with the given height up to 10 lines maximum.
" Otherwise g:go_location_height is used. If no or zero height is given it
" Otherwise g:go_loclist_height is used. If no or zero height is given it
" closes the window
function! go#list#Window(...)
" we don't use lwindow to close the location list as we need also the
Expand All @@ -12,7 +12,7 @@ function! go#list#Window(...)
return
endif

let height = get(g:, "go_location_height", 0)
let height = get(g:, "go_loclist_height", 0)
if height == 0
" prevent creating a large location height for a large set of numbers
if a:1 > 10
Expand Down
4 changes: 2 additions & 2 deletions doc/vim-go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -887,14 +887,14 @@ seconds.
>
let g:go_metalinter_deadline = "5s"
<
*'g:go_location_height'*
*'g:go_loclist_height'*

Specifies the current location list height for all location lists. The default
value (empty) sets automatically the height to the number of errors (maximum
up to 10 errors to prevent large heights). Setting the value explicitly
overrides this behavior. To get default Vim behavior set it to 10.
>
let g:go_location_height = 0
let g:go_loclist_height = 0
===============================================================================
TROUBLESHOOTING *go-troubleshooting*
Expand Down

0 comments on commit ddfc8f4

Please sign in to comment.