From 2bbcd7902a5e001fd962b43895cc75c69da68c4b Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Fri, 26 Mar 2021 23:10:40 +0900 Subject: Ignore the "-" option to accept `w3m -` as "read from stdin" Bug-Debian: https://github.com/tats/w3m/issues/87 --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index 5e44eb4..5d2904e 100644 --- a/main.c +++ b/main.c @@ -786,7 +786,7 @@ main(int argc, char **argv, char **envp) usage(); } } - else if (!strcmp("-dummy", argv[i])) { + else if (!strcmp("-", argv[i]) || !strcmp("-dummy", argv[i])) { /* do nothing */ } else if (!strcmp("-debug", argv[i])) { -- cgit v1.2.3