From f0b5373846f3809d6f04b5492e82c130182820ae Mon Sep 17 00:00:00 2001
From: H.G.Muller <hgm@hgm-xboard.(none)>
Date: Thu, 10 Mar 2016 16:28:52 +0100
Subject: [PATCH] Allow hyphen in name of help item

Some dialog items have names with hyphens in them, such as 'Auto-save',
and these would all be confusedif the true name was taken to end before
the hyphen.
---
 dialogs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dialogs.c b/dialogs.c
index ca9f71c..104f6c2 100644
--- a/dialogs.c
+++ b/dialogs.c
@@ -2462,7 +2462,7 @@ GetHelpText (FILE *f, char *name)
     int len, cnt = 0;
     snprintf(buf, MSG_SIZ, ".B %s", name);
     len = strlen(buf);
-    for(len=1; buf[len] == ' ' || isalpha(buf[len]) || isdigit(buf[len]); len++);
+    for(len=1; buf[len] == ' ' || buf[len] == '-' || isalpha(buf[len]) || isdigit(buf[len]); len++);
     buf[len] = NULLCHAR;
     while(buf[--len] == ' ') buf[len] = NULLCHAR;
     while((line = ReadLine(f))) {
-- 
1.7.0.4