summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-11-22 16:39:05 +0000
committerw0rp <devw0rp@gmail.com>2017-11-22 16:39:05 +0000
commit91fe749d037d8f11b8b34346392ebb840594994c (patch)
tree8c74a9950a849bd6a8ea5abd33ee89155e5061dc
parent5d2ab192cf4ecce604cee4e8870ff7d5d3f47ed8 (diff)
downloadale-91fe749d037d8f11b8b34346392ebb840594994c.zip
Fix a bug with resetting pattern options when ALE is enabled again
-rw-r--r--autoload/ale/toggle.vim2
1 files changed, 1 insertions, 1 deletions
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()