From fd5c21c6f6cd41929196c0415dac30bff65bdaf8 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Mon, 7 Sep 2020 21:18:23 +0100 Subject: enchant: ignore -B for ispell compatibility (Emacs passes -B to ispell) --- src/enchant.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/enchant.c b/src/enchant.c index 579b6a0..953e704 100644 --- a/src/enchant.c +++ b/src/enchant.c @@ -422,7 +422,7 @@ int main (int argc, char ** argv) #endif int optchar; - while ((optchar = getopt (argc, argv, ":d:alvLm")) != -1) { + while ((optchar = getopt (argc, argv, ":d:alvLmB")) != -1) { switch (optchar) { case 'd': dictionary = optarg; /* Emacs calls ispell with '-d dictionary'. */ @@ -443,7 +443,8 @@ int main (int argc, char ** argv) print_version (stderr); exit (0); case 'm': - /* Ignore: Emacs calls ispell with '-m'. */ + case 'B': + /* Ignore: Emacs calls ispell with '-m' and '-B'. */ break; case 'h': print_help (argv[0]); -- cgit v1.2.1