From: H.G.Muller Date: Thu, 10 Mar 2016 15:28:52 +0000 (+0100) Subject: Allow hyphen in name of help item X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=f0b5373846f3809d6f04b5492e82c130182820ae;p=xboard.git 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. --- 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))) {