mirror of
https://github.com/neovim/neovim.git
synced 2024-12-27 14:21:31 -07:00
main: Make -s -
read from stdin
This commit is contained in:
parent
0cab62ad6f
commit
65c41e6c2b
@ -1056,7 +1056,9 @@ scripterror:
|
||||
mch_errmsg("\"\n");
|
||||
mch_exit(2);
|
||||
}
|
||||
if ((scriptin[0] = mch_fopen(argv[0], READBIN)) == NULL) {
|
||||
if (STRCMP(argv[0], "-") == 0) {
|
||||
scriptin[0] = stdin;
|
||||
} else if ((scriptin[0] = mch_fopen(argv[0], READBIN)) == NULL) {
|
||||
mch_errmsg(_("Cannot open for reading: \""));
|
||||
mch_errmsg(argv[0]);
|
||||
mch_errmsg("\"\n");
|
||||
|
Loading…
Reference in New Issue
Block a user