aboutsummaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
Diffstat (limited to 'autoload')
-rw-r--r--autoload/utils.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/autoload/utils.vim b/autoload/utils.vim
index 7d6f9bd..c029cd3 100644
--- a/autoload/utils.vim
+++ b/autoload/utils.vim
@@ -181,7 +181,8 @@ function! utils#CaptureCommandOutput(command) abort
"create a scratch buffer for dumping the text, ref: https://vi.stackexchange.com/a/11311/15292.
tabnew | setlocal buftype=nofile bufhidden=wipe nobuflisted noswapfile
- put! m
+ let l:lines = split(@m, '\n')
+ call nvim_buf_set_lines(0, 0, 0, 0, l:lines)
endfunction
" Edit all files matching the given patterns.