diff options
author | w0rp <devw0rp@gmail.com> | 2017-08-05 19:51:38 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-08-05 19:51:38 +0100 |
commit | 747d4fe80b8dfdc65260868230b8e3fded328228 (patch) | |
tree | bc099ba509d816413ebeaf44299efae27ec4cc56 /test | |
parent | 666cfc6ee29d2bcd36a45f4ca7aa77899b2904d4 (diff) | |
download | ale-747d4fe80b8dfdc65260868230b8e3fded328228.zip |
Stop writing a test file in real world usage in some cases
Diffstat (limited to 'test')
-rw-r--r-- | test/test_ale_fix.vader | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_ale_fix.vader b/test/test_ale_fix.vader index bafeee2b..b5c16724 100644 --- a/test/test_ale_fix.vader +++ b/test/test_ale_fix.vader @@ -82,6 +82,8 @@ After: call ale#fix#registry#ResetToDefaults() call ale#linter#Reset() + setlocal buftype=nofile + if filereadable('fix_test_file') call delete('fix_test_file') endif @@ -245,6 +247,9 @@ Execute(ALEFix should save files on the save event): let g:ale_fixers.testft = ['AddDollars'] + " We have to set the buftype to empty so the file will be written. + setlocal buftype= + call SetUpLinters() call ale#events#SaveEvent(bufnr('')) |