diff options
-rw-r--r-- | src/fish_indent.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fish_indent.cpp b/src/fish_indent.cpp index 67201975..9436944a 100644 --- a/src/fish_indent.cpp +++ b/src/fish_indent.cpp @@ -409,11 +409,11 @@ int main(int argc, char *argv[]) { wcstring src; if (argc == 0) { - src = read_file(stdin); if (output_type == output_type_file) { fwprintf(stderr, _(L"You cannot use -w without providing the path to read from and write to.")); exit(1); } + src = read_file(stdin); } else if (argc == 1) { FILE *fh = fopen(*argv, "r"); if (fh) { |