From 91fe749d037d8f11b8b34346392ebb840594994c Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 22 Nov 2017 16:39:05 +0000 Subject: [PATCH] Fix a bug with resetting pattern options when ALE is enabled again --- autoload/ale/toggle.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/ale/toggle.vim b/autoload/ale/toggle.vim index 7197498e..dcca7038 100644 --- a/autoload/ale/toggle.vim +++ b/autoload/ale/toggle.vim @@ -133,7 +133,7 @@ function! ale#toggle#Enable() abort if !g:ale_enabled " Set pattern options again, if enabled. if g:ale_pattern_options_enabled - call ale#pattern_options#SetOptions() + call ale#pattern_options#SetOptions(bufnr('')) endif call ale#toggle#Toggle()