summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorJason Franklin <jason.franklin@quoininc.com>2020-11-02 10:46:56 -0500
committerJason Franklin <jason.franklin@quoininc.com>2020-11-02 10:46:56 -0500
commit73632312c2519d7925dc57e5abcd0eacc5f1e55f (patch)
treee168d1ca6d847c49289066f34eea0e9ba8bee7f2 /autoload
parent6c22936303a3236b471baee81c83683de4c25f47 (diff)
downloadale-73632312c2519d7925dc57e5abcd0eacc5f1e55f.zip
Use the proper term for the "#!" line
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/handlers/sh.vim10
1 files changed, 5 insertions, 5 deletions
diff --git a/autoload/ale/handlers/sh.vim b/autoload/ale/handlers/sh.vim
index 20ed5cb8..f99c3dbd 100644
--- a/autoload/ale/handlers/sh.vim
+++ b/autoload/ale/handlers/sh.vim
@@ -1,17 +1,17 @@
" Author: w0rp <devw0rp@gmail.com>
function! ale#handlers#sh#GetShellType(buffer) abort
- let l:bang_line = get(getbufline(a:buffer, 1), 0, '')
+ let l:shebang = get(getbufline(a:buffer, 1), 0, '')
let l:command = ''
- " Take the shell executable from the hashbang, if we can.
- if l:bang_line[:1] is# '#!'
+ " Take the shell executable from the shebang, if we can.
+ if l:shebang[:1] is# '#!'
" Remove options like -e, etc.
- let l:command = substitute(l:bang_line, ' --\?[a-zA-Z0-9]\+', '', 'g')
+ let l:command = substitute(l:shebang, ' --\?[a-zA-Z0-9]\+', '', 'g')
endif
- " If we couldn't find a hashbang, try the filetype
+ " If we couldn't find a shebang, try the filetype
if l:command is# ''
let l:command = &filetype
endif