#318 Do not capitalize the first character for cursor messages

This commit is contained in:
w0rp
2017-05-21 19:51:34 +01:00
parent 23ee0d0992
commit 3a289dab6b
2 changed files with 19 additions and 4 deletions

View File

@@ -7,15 +7,13 @@ function! s:GetMessage(linter, type, text) abort
let l:type = a:type ==# 'E'
\ ? g:ale_echo_msg_error_str
\ : g:ale_echo_msg_warning_str
" Capitalize the 1st character
let l:text = toupper(a:text[0]) . a:text[1:-1]
" Replace handlers if they exist
for [l:k, l:v] in items({'linter': a:linter, 'severity': l:type})
let l:msg = substitute(l:msg, '\V%' . l:k . '%', l:v, '')
endfor
return printf(l:msg, l:text)
return printf(l:msg, a:text)
endfunction
function! s:EchoWithShortMess(setting, message) abort