mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 00:08:19 +00:00
refactor(ui): simplify stdin handling
This commit is contained in:
@@ -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 || implicit_readstdin) && !recoverymode) {
|
||||
if ((params.edit_type == EDIT_STDIN || stdin_fd >= 0) && !recoverymode) {
|
||||
read_stdin();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user