1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

Refactor: use a unified log function

This commit is contained in:
jdhao
2021-07-24 14:53:48 +08:00
parent b0eb7c4508
commit f7475f3e4f
4 changed files with 25 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ function! buf_utils#GoToBuffer(count, direction) abort
endif
" Check the validity of buffer number.
if index(s:GetBufNums(), a:count) == -1
echohl WarningMsg | echomsg 'Invalid bufnr: ' a:count | echohl None
call utils#Log('Invalid bufnr: ' . a:count, 'error')
return
endif