Skip to content

Commit

Permalink
fix: print errors each line
Browse files Browse the repository at this point in the history
  • Loading branch information
Milly committed Apr 14, 2024
1 parent eb3a43b commit 54d53fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion autoload/ddu/util.vim
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 54d53fb

Please sign in to comment.