enchant2/Parameter-h-correction.patch

26 lines
718 B
Diff
Raw Permalink Normal View History

From 342825209d78399cfb5f1be72afc546aa4ba4d1a Mon Sep 17 00:00:00 2001
From: zhangxianting <zhangxianting@uniontech.com>
Date: Fri, 29 Mar 2024 15:45:52 +0800
Subject: [PATCH] Parameter -h correction
---
src/enchant.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/enchant.c b/src/enchant.c
index 42151e8..41e545d 100644
--- a/src/enchant.c
+++ b/src/enchant.c
@@ -428,7 +428,7 @@ int main (int argc, char ** argv)
#endif
int optchar;
- while ((optchar = getopt (argc, argv, ":d:p:alvLmB")) != -1) {
+ while ((optchar = getopt (argc, argv, ":d:p:alvLmBh")) != -1) {
switch (optchar) {
case 'd':
dictionary = optarg; /* Emacs calls ispell with '-d dictionary'. */
--
2.33.0