summaryrefslogtreecommitdiffstats
path: root/scripts/test_extensions.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-09-15 11:19:56 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-09-15 11:19:56 +0200
commit271679272c7bb1a281c7404408a2414068abf91c (patch)
tree2fc9d0360160659640ea75eefc1243c377507e35 /scripts/test_extensions.vim
parentd43d269bedbb6bcf725eaf5bb5b3c5a0bcfcb0c0 (diff)
downloadvim-polyglot-4.10.1.tar.gz
vim-polyglot-4.10.1.zip
Fix eruby filetype detect, closes #547v4.9.10v4.10.1
Diffstat (limited to 'scripts/test_extensions.vim')
-rw-r--r--scripts/test_extensions.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/test_extensions.vim b/scripts/test_extensions.vim
index b0dad298..f2aaf66c 100644
--- a/scripts/test_extensions.vim
+++ b/scripts/test_extensions.vim
@@ -6,7 +6,7 @@ function! TestExtension(filetype, filename, content)
1delete _
filetype detect
exec "if &filetype != '" . a:filetype . "' \nthrow &filetype\nendif"
- exec ":q!"
+ exec ":bw!"
catch
echo g:message
echo "Filename '" . a:filename . "' does not resolve to extension '" . a:filetype . "'"