Closed pippi1otta closed 8 months ago
Applied in the devel
branch of https://git.sr.ht/~mcepl/vis and it seems to work just fine. I could easily reproduce the error before, but not after. Will probably move to my master
branch soon.
Sorry for the slow reply. This fix is correct but I modified it slightly and included an explanation in the commit message.
I think there is an opportunity to share some code between vis_pipe()
and vis_process_communicate()
so that these differences can be avoided. But that can be a different commit.
A repro snippet (comparison with a vis:communicate handler):
In this example, vis:pipe returns 512, while the vis:communicate handler returns 2. (Checked with emacs, it also displays 2).
I believe the fix is something along these lines: