Fix #2497 - ALE should not lint on save when disabled after fixing

This commit is contained in:
w0rp
2019-05-13 13:44:29 +01:00
parent bf17bbf898
commit 42cbff29f8
3 changed files with 51 additions and 2 deletions
+2 -2
View File
@@ -86,7 +86,7 @@ Execute(No linting should be for :w after :q fails):
AssertEqual 1, len(ale#test#GetLoclistWithoutModule())
Execute(No linting should be done on :wq or :x after fixing files):
let g:ale_lint_on_save = 0
let g:ale_lint_on_save = 1
let g:ale_fix_on_save = 1
call ale#events#SaveEvent(bufnr(''))
@@ -103,7 +103,7 @@ Execute(No linting should be done on :wq or :x after fixing files):
AssertEqual [], ale#test#GetLoclistWithoutModule()
Execute(Linting should be done after :q fails and fixing files):
let g:ale_lint_on_save = 0
let g:ale_lint_on_save = 1
let g:ale_fix_on_save = 1
call ale#events#QuitEvent(bufnr(''))