summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/sed.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/editors/sed.c b/editors/sed.c
index ac3d8d4..8d372ab 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -1235,9 +1235,7 @@ int sed_main(int argc, char **argv)
struct stat statbuf;
int nonstdoutfd;
- if (argv[i][0] == '-' && !argv[i][1]
- && !(opt & OPT_in_place)
- ) {
+ if (LONE_DASH(argv[i]) && !(opt & OPT_in_place)) {
add_input_file(stdin);
process_files();
continue;