summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-10-26 09:22:33 +0100
committerw0rp <devw0rp@gmail.com>2018-10-26 09:22:52 +0100
commit77aacf0c91e15449e9b0c332047b666dd21ee9d4 (patch)
treede7a707e5539583a22a0cb5e029ad2bb98a78f09 /autoload
parent320c74ce1a28bfb4f2e10e1efcd2ca93701fc00e (diff)
downloadale-77aacf0c91e15449e9b0c332047b666dd21ee9d4.zip
#927 Allow b:ale_linter_aliases to be set to a String
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/linter.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/autoload/ale/linter.vim b/autoload/ale/linter.vim
index 7c1dc53e..dbf9f221 100644
--- a/autoload/ale/linter.vim
+++ b/autoload/ale/linter.vim
@@ -346,8 +346,9 @@ endfunction
function! s:GetAliasedFiletype(original_filetype) abort
let l:buffer_aliases = get(b:, 'ale_linter_aliases', {})
- " b:ale_linter_aliases can be set to a List.
+ " b:ale_linter_aliases can be set to a List or String.
if type(l:buffer_aliases) is v:t_list
+ \|| type(l:buffer_aliases) is v:t_string
return l:buffer_aliases
endif