Skip to content

Commit

Permalink
Fix print_error()
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Apr 15, 2024
1 parent 3f9845d commit 5043448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/dpp/util.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const s:is_windows = has('win32') || has('win64')

function dpp#util#_error(string, name = 'ddx') abort
function dpp#util#_error(string, name = 'dpp') abort
echohl Error
for line in a:string->string()->split("\n")
for line in a:string->string()->split("\n")->filter({ _, val -> val != ''})
echomsg printf('[%s] %s', a:name, line)
endfor
echohl None
Expand Down

0 comments on commit 5043448

Please sign in to comment.