Open Lyot opened 2 years ago
Seems like a bug in readme sample code and not in async.vim. Thanks for catching!
You can check the a:event_type
to be stdout
or stderr
or create a different handler for on_exit
.
Feel free to send a PR to update the sample.
Hi, I just tried out the example from the Readme and it crashes in the handler
on_exit
due toa:data
being of typenumber
and notlist
.Am I correct that this is simply a bug because
on_exit
returns the status code of the command?I am running
Vim version 8.2 1-4745
.