This repository has been archived by the owner on Aug 12, 2023. It is now read-only.
Command output is always split on \n
, regardless of actual line ending
#555
Labels
bug
Something isn't working
#550 revealed that null-ls was using the buffer's
fileformat
to determine the command's line ending, which isn't a valid assumption. Commands may use input / environment to determine the "correct" line ending, but it's not something we can rely on.For now, 9265a99 hardcodes
\n
as the output line ending. We could theoretically hardcode this at the source level, but that's brittle and would require cross-platform testing to determine command behavior.The best solution I can think of is to determine the correct line ending from the output itself. neovim/neovim#16286 provides an example of how we might do this (I wouldn't want to rely on the internal utility if / when the PR is merged).
The text was updated successfully, but these errors were encountered: