diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-04-22 20:56:31 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2022-05-02 22:19:41 +0200 |
commit | ad63b94b03c166f37bda477db6cbac2a9583d586 (patch) | |
tree | 49ee0ca3d359e52630d7e30e5dbb5a53275640b1 /src/nvim/main.c | |
parent | 619c8f4b9143e4dea0fb967ccdce594e14956ed3 (diff) | |
download | rneovim-ad63b94b03c166f37bda477db6cbac2a9583d586.tar.gz rneovim-ad63b94b03c166f37bda477db6cbac2a9583d586.tar.bz2 rneovim-ad63b94b03c166f37bda477db6cbac2a9583d586.zip |
refactor(ui): simplify stdin handling
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r-- | src/nvim/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c index 253a89467e..5a496a10b4 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -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(); } |