Fix #461 - Allow multiple loclist windows to be opened, and replace some split windows
This commit is contained in:
parent
e88eb6c415
commit
9dadde190e
@ -44,13 +44,13 @@ function! ale#list#SetLists(buffer, loclist) abort
|
|||||||
if len(a:loclist) > 0 || g:ale_keep_list_window_open
|
if len(a:loclist) > 0 || g:ale_keep_list_window_open
|
||||||
let l:winnr = winnr()
|
let l:winnr = winnr()
|
||||||
|
|
||||||
if !ale#list#IsQuickfixOpen()
|
|
||||||
if g:ale_set_quickfix
|
if g:ale_set_quickfix
|
||||||
|
if !ale#list#IsQuickfixOpen()
|
||||||
execute 'copen ' . str2nr(ale#Var(a:buffer, 'list_window_size'))
|
execute 'copen ' . str2nr(ale#Var(a:buffer, 'list_window_size'))
|
||||||
|
endif
|
||||||
elseif g:ale_set_loclist
|
elseif g:ale_set_loclist
|
||||||
execute 'lopen ' . str2nr(ale#Var(a:buffer, 'list_window_size'))
|
execute 'lopen ' . str2nr(ale#Var(a:buffer, 'list_window_size'))
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
" If focus changed, restore it (jump to the last window).
|
" If focus changed, restore it (jump to the last window).
|
||||||
if l:winnr !=# winnr()
|
if l:winnr !=# winnr()
|
||||||
|
Loading…
Reference in New Issue
Block a user