mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Clean up warning messages
This commit is contained in:
committed by
Andy Stewart
parent
9756e95bd5
commit
602a5ba19e
@@ -30,7 +30,7 @@ endfunction
|
|||||||
|
|
||||||
function! gitgutter#utility#warn(message) abort
|
function! gitgutter#utility#warn(message) abort
|
||||||
echohl WarningMsg
|
echohl WarningMsg
|
||||||
echo 'vim-gitgutter: ' . a:message
|
echo a:message
|
||||||
echohl None
|
echohl None
|
||||||
let v:warningmsg = a:message
|
let v:warningmsg = a:message
|
||||||
endfunction
|
endfunction
|
||||||
@@ -39,7 +39,7 @@ function! gitgutter#utility#warn_once(bufnr, message, key) abort
|
|||||||
if empty(gitgutter#utility#getbufvar(a:bufnr, a:key))
|
if empty(gitgutter#utility#getbufvar(a:bufnr, a:key))
|
||||||
call gitgutter#utility#setbufvar(a:bufnr, a:key, '1')
|
call gitgutter#utility#setbufvar(a:bufnr, a:key, '1')
|
||||||
echohl WarningMsg
|
echohl WarningMsg
|
||||||
redraw | echom 'vim-gitgutter: ' . a:message
|
redraw | echom a:message
|
||||||
echohl None
|
echohl None
|
||||||
let v:warningmsg = a:message
|
let v:warningmsg = a:message
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user