Because the sh utility function always closes the output buffer:
Maybe only call bwipeout if the shell script exited successfully? Or if that's too complicated, leave it around for the user to delete? It's better than hiding useful feedback on error imho :)
Checking the exit code would be a good option here. Would you be interested in making the PR? I think it's possible to figure out how to check the exit code from these docs: https://github.com/luvit/luv/blob/master/docs.md
If not, it'd be a good first issue for someone else. Thanks for reporting.
Thanks for the pointer! I would've tried a PR but I wasn't really sure how to get at that exit code, I helpgrepped the docs for spawn but couldn't find anything relevant :) I'll have a look at that link and see what I can do.
No problem -- I'm pretty sure that vim.loop is just the loop from luv which is built on libuv. I could be wrong about that, but so far it's worked for every problem I've encountered with it haha :)
Addressed by #208.
Most helpful comment
No problem -- I'm pretty sure that
vim.loopis just the loop fromluvwhich is built onlibuv. I could be wrong about that, but so far it's worked for every problem I've encountered with it haha :)