diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-10 15:40:27 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-10 15:40:27 +0200 |
commit | 9243367ba376050621e4c05e8f0439742c1f0f82 (patch) | |
tree | da72230c3a5258fe2be8c90ef0301ac1edd7d547 /scripts/build | |
parent | 1eed30b2af57538496943da09e298a6facc33002 (diff) | |
download | vim-polyglot-4.10.0.tar.gz vim-polyglot-4.10.0.zip |
Automatically detect script filetype when typingv4.10.0
Diffstat (limited to 'scripts/build')
-rwxr-xr-x | scripts/build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/build b/scripts/build index 03c005c4..982e0f3a 100755 --- a/scripts/build +++ b/scripts/build @@ -559,8 +559,10 @@ def generate_ftdetect(packages, heuristics) let l:filetype = polyglot#Shebang() if l:filetype != "" exec "setf " . l:filetype - return + return 1 endif + + return 0 endfunc let s:interpreters = { |