From 41b951e64e20c81f61f3434336e74e90d5675dbc Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 1 Mar 2018 02:07:48 +0100 Subject: [PATCH] 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). --- autoload/gitgutter/utility.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/gitgutter/utility.vim b/autoload/gitgutter/utility.vim index 350d21c..ccc4208 100644 --- a/autoload/gitgutter/utility.vim +++ b/autoload/gitgutter/utility.vim @@ -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