23 lines
397 B
Plaintext
23 lines
397 B
Plaintext
Before:
|
|
Save g:ale_enabled
|
|
|
|
unlet! b:ale_quitting
|
|
let g:ale_enabled = 0
|
|
|
|
After:
|
|
Restore
|
|
|
|
unlet! b:ale_quitting
|
|
|
|
Execute(QuitEvent should set b:ale_quitting to 1):
|
|
call ale#events#QuitEvent(bufnr(''))
|
|
|
|
AssertEqual 1, b:ale_quitting
|
|
|
|
Execute(EnterEvent should set b:ale_quitting to 0):
|
|
let b:ale_quitting = 1
|
|
|
|
call ale#events#EnterEvent(bufnr(''))
|
|
|
|
AssertEqual 0, b:ale_quitting
|