mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Fix gitgutter#utility#warn_once: use echom
This a) logs the message to be seen in `:mess` and b) avoids the hit-ENTER prompt (which is likely caused by the message not being logged and Vim deciding that you need to see it then). So a) fixes b).
This commit is contained in:
committed by
Andy Stewart
parent
2fe748b48f
commit
41b951e64e
@@ -37,7 +37,7 @@ function! gitgutter#utility#warn_once(bufnr, message, key) abort
|
||||
if empty(gitgutter#utility#getbufvar(a:bufnr, a:key))
|
||||
call gitgutter#utility#setbufvar(a:bufnr, a:key, '1')
|
||||
echohl WarningMsg
|
||||
redraw | echo 'vim-gitgutter: ' . a:message
|
||||
redraw | echom 'vim-gitgutter: ' . a:message
|
||||
echohl None
|
||||
let v:warningmsg = a:message
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user