From f7475f3e4fb01d5a34b0eec3ebff18981e910e87 Mon Sep 17 00:00:00 2001 From: jdhao Date: Sat, 24 Jul 2021 14:53:48 +0800 Subject: Refactor: use a unified log function --- core/autocommands.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/autocommands.vim') diff --git a/core/autocommands.vim b/core/autocommands.vim index 29b4cea..64b86f8 100644 --- a/core/autocommands.vim +++ b/core/autocommands.vim @@ -42,8 +42,7 @@ augroup END " https://vi.stackexchange.com/a/20397/15292. augroup auto_read autocmd! - autocmd FileChangedShellPost * echohl WarningMsg - \ | echo "File changed on disk. Buffer reloaded!" | echohl None + autocmd FileChangedShellPost * call utils#Log("File changed on disk. Buffer reloaded!", 'warning') autocmd FocusGained,CursorHold * if getcmdwintype() == '' | checktime | endif augroup END -- cgit v1.2.3