summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-07-15 18:44:45 +0100
committerw0rp <devw0rp@gmail.com>2017-07-15 18:44:45 +0100
commitcad9fc19c65ddd0e20456ce345de81e6b03f331e (patch)
treec30aaf972f03c6ac5f3f2e4bb2509beecacfb923 /autoload
parent507e32e91c61a754f0ca69ddbf46b0c3a3ae3602 (diff)
downloadale-cad9fc19c65ddd0e20456ce345de81e6b03f331e.zip
Fix #773 - Do not clear the loclist when closing the loclist window
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/engine.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim
index 6cde4bf7..60cdf489 100644
--- a/autoload/ale/engine.vim
+++ b/autoload/ale/engine.vim
@@ -665,6 +665,10 @@ endfunction
" clear the state of everything, and remove the Dictionary for managing
" the buffer.
function! ale#engine#Cleanup(buffer) abort
+ if !has_key(g:ale_buffer_info, a:buffer)
+ return
+ endif
+
call ale#engine#RunLinters(a:buffer, [], 1)
call remove(g:ale_buffer_info, a:buffer)