feat(api): support handling stdin stream in remote ui

This commit is contained in:
hlpr98
2022-04-16 14:46:20 +02:00
committed by bfredl
parent af53fa0663
commit 619c8f4b91
3 changed files with 37 additions and 1 deletions

View File

@@ -454,7 +454,7 @@ int main(int argc, char **argv)
// writing end of the pipe doesn't like, e.g., in case stdin and stderr
// are the same terminal: "cat | vim -".
// Using autocommands here may cause trouble...
if (params.edit_type == EDIT_STDIN && !recoverymode) {
if ((params.edit_type == EDIT_STDIN || implicit_readstdin) && !recoverymode) {
read_stdin();
}