aboutsummaryrefslogtreecommitdiff
path: root/autoload/utils.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-12-30 22:33:06 +0800
committerjdhao <jdhao@hotmail.com>2021-12-30 22:33:06 +0800
commita86f1d2f31bb0e89d4488a9361538cc59776475c (patch)
tree25bb09b7d56898210a817dbd2258607e7b9a15ec /autoload/utils.vim
parentc1b27ee818f4c7a8de0c8a8b64856f393e45f00e (diff)
refactor: capture command output silently
Diffstat (limited to 'autoload/utils.vim')
-rw-r--r--autoload/utils.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/utils.vim b/autoload/utils.vim
index 8f528fb..5e762f3 100644
--- a/autoload/utils.vim
+++ b/autoload/utils.vim
@@ -175,7 +175,7 @@ endfunction
" Ref: https://stackoverflow.com/q/2573021/6064933 and https://unix.stackexchange.com/q/8101/221410 .
function! utils#CaptureCommandOutput(command) abort
redir @m
- execute a:command
+ silent! execute a:command
redir END
call v:lua.vim.notify("command output captured to register m", "info", {'title': 'nvim-config'})
"create a scratch buffer for dumping the text, ref: https://vi.stackexchange.com/a/11311/15292.