From 9dadde190e2d691c375cde9e2d6988b11f40285a Mon Sep 17 00:00:00 2001 From: w0rp Date: Tue, 6 Jun 2017 17:31:13 +0100 Subject: [PATCH] Fix #461 - Allow multiple loclist windows to be opened, and replace some split windows --- autoload/ale/list.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/autoload/ale/list.vim b/autoload/ale/list.vim index bbe71e3c..f446bbac 100644 --- a/autoload/ale/list.vim +++ b/autoload/ale/list.vim @@ -44,12 +44,12 @@ function! ale#list#SetLists(buffer, loclist) abort if len(a:loclist) > 0 || g:ale_keep_list_window_open let l:winnr = winnr() - if !ale#list#IsQuickfixOpen() - if g:ale_set_quickfix - execute 'copen ' . str2nr(ale#Var(a:buffer, 'list_window_size')) - elseif g:ale_set_loclist - execute 'lopen ' . str2nr(ale#Var(a:buffer, 'list_window_size')) - endif + if g:ale_set_quickfix + if !ale#list#IsQuickfixOpen() + execute 'copen ' . str2nr(ale#Var(a:buffer, 'list_window_size')) + endif + elseif g:ale_set_loclist + execute 'lopen ' . str2nr(ale#Var(a:buffer, 'list_window_size')) endif " If focus changed, restore it (jump to the last window).