summaryrefslogtreecommitdiffstats
path: root/scripts/test_extensions.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-09-08 21:17:24 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-09-08 21:17:24 +0200
commit002573265a944381cf8dccf5129fc432e33441e7 (patch)
tree4a0e2476a019b5dfdce5a29c4428897a30d7dc05 /scripts/test_extensions.vim
parenta4b91124a8fea26575d08c1845e141520e7d33e2 (diff)
downloadvim-polyglot-002573265a944381cf8dccf5129fc432e33441e7.tar.gz
vim-polyglot-002573265a944381cf8dccf5129fc432e33441e7.zip
Fix some ftdetect issues from tests
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 f2aaf66c..b0dad298 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 ":bw!"
+ exec ":q!"
catch
echo g:message
echo "Filename '" . a:filename . "' does not resolve to extension '" . a:filetype . "'"