summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-06-25 16:14:04 +0100
committerw0rp <devw0rp@gmail.com>2017-06-25 16:14:04 +0100
commitc2138a2656a2aa6306921f71a2a5ee7c4c690c1f (patch)
treea880840e9b011d3d439b65115b7cbaa39efb4352 /autoload
parentec3ddce4aca794742abf54bdf146ccd51e07e821 (diff)
downloadale-c2138a2656a2aa6306921f71a2a5ee7c4c690c1f.zip
Fix the tests for the fix on save feature
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/fix.vim6
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