diff options
author | w0rp <devw0rp@gmail.com> | 2017-06-25 16:14:04 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-06-25 16:14:04 +0100 |
commit | c2138a2656a2aa6306921f71a2a5ee7c4c690c1f (patch) | |
tree | a880840e9b011d3d439b65115b7cbaa39efb4352 /autoload | |
parent | ec3ddce4aca794742abf54bdf146ccd51e07e821 (diff) | |
download | ale-c2138a2656a2aa6306921f71a2a5ee7c4c690c1f.zip |
Fix the tests for the fix on save feature
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/fix.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/autoload/ale/fix.vim b/autoload/ale/fix.vim index 428ea8d8..873e4b83 100644 --- a/autoload/ale/fix.vim +++ b/autoload/ale/fix.vim @@ -40,7 +40,11 @@ function! ale#fix#ApplyQueuedFixes() abort endif if l:data.should_save - noautocmd :w! + if empty(&buftype) + noautocmd :w! + else + set nomodified + endif endif endif |