From 54d53fb700b031c4d120937abe30b471ac491140 Mon Sep 17 00:00:00 2001 From: Milly Date: Sun, 14 Apr 2024 08:12:54 +0900 Subject: [PATCH] fix: print errors each line --- autoload/ddu/util.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autoload/ddu/util.vim b/autoload/ddu/util.vim index d48bb26..e5230a8 100644 --- a/autoload/ddu/util.vim +++ b/autoload/ddu/util.vim @@ -1,8 +1,11 @@ const s:is_windows = has('win32') || has('win64') function ddu#util#print_error(string, name = 'ddu') abort + let lines = a:string->string()->split("\n") echohl Error - echomsg printf('[%s] %s', a:name, a:string->string()) + for line in lines + echomsg printf('[%s] %s', a:name, line) + endfor echohl None endfunction