diff options
author | w0rp <devw0rp@gmail.com> | 2017-05-21 19:51:34 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-05-21 19:51:34 +0100 |
commit | 3a289dab6b6581586d42204e5e8d56a1489aa75c (patch) | |
tree | a29f573e0f9afe9e36fabfa702776f2d6227c039 /autoload | |
parent | 23ee0d0992c876c605555a3a667cc84c52382ed4 (diff) | |
download | ale-3a289dab6b6581586d42204e5e8d56a1489aa75c.zip |
#318 Do not capitalize the first character for cursor messages
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/cursor.vim | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/autoload/ale/cursor.vim b/autoload/ale/cursor.vim index ad580b98..e5ce7fde 100644 --- a/autoload/ale/cursor.vim +++ b/autoload/ale/cursor.vim @@ -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 |