mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-10 04:23:51 -05:00
Fix eruby filetype detect, closes #547
This commit is contained in:
@@ -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 . "'"
|
||||
|
||||
Reference in New Issue
Block a user