aboutsummaryrefslogtreecommitdiff
path: root/autoload/buf_utils.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-07-24 14:53:48 +0800
committerjdhao <jdhao@hotmail.com>2021-07-24 14:53:48 +0800
commitf7475f3e4fb01d5a34b0eec3ebff18981e910e87 (patch)
treec6df470308f67c4204390a40577788d5de5d6144 /autoload/buf_utils.vim
parentb0eb7c4508599a7eace480d89e764612664839a3 (diff)
Refactor: use a unified log function
Diffstat (limited to 'autoload/buf_utils.vim')
-rw-r--r--autoload/buf_utils.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/buf_utils.vim b/autoload/buf_utils.vim
index db34ae0..fa2aefd 100644
--- a/autoload/buf_utils.vim
+++ b/autoload/buf_utils.vim
@@ -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