summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-11-10 10:06:48 +0000
committerw0rp <devw0rp@gmail.com>2018-11-10 10:06:56 +0000
commitf8d3ffb60e132e3c4b0b853b9ae21b49acdacd5d (patch)
tree64d9bc3f4d8b727ff7b0b09bc1b8bed978258fa7 /autoload
parente4faf82cab34869c5ecdc097b9eb0209c9ad9318 (diff)
downloadale-f8d3ffb60e132e3c4b0b853b9ae21b49acdacd5d.zip
Fix #1960 - Do not fix files on :wq
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/events.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/events.vim b/autoload/ale/events.vim
index e48ad488..61a625df 100644
--- a/autoload/ale/events.vim
+++ b/autoload/ale/events.vim
@@ -29,7 +29,7 @@ function! ale#events#SaveEvent(buffer) abort
call setbufvar(a:buffer, 'ale_save_event_fired', 1)
endif
- if ale#Var(a:buffer, 'fix_on_save')
+ if ale#Var(a:buffer, 'fix_on_save') && !ale#events#QuitRecently(a:buffer)
let l:will_fix = ale#fix#Fix(a:buffer, 'save_file')
let l:should_lint = l:should_lint && !l:will_fix
endif