* man2hlp.c (handle_command): Remove quotes from TOPIC.

This commit is contained in:
Pavel Roskin 2002-08-25 18:13:37 +00:00
parent 7aa2ae12c7
commit f9a0f1440a
2 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2002-08-25 Pavel Roskin <proski@gnu.org>
* man2hlp.c (handle_command): Remove quotes from TOPIC.
* key.c (get_event): Check gpm_fd before using it in FD_SET. If
gpm_fd is -1 (gpm has died), disable mouse support.

View File

@ -373,6 +373,15 @@ handle_command (char *buffer)
print_error ("Syntax error: .\\\"TOPICS: no text");
return;
}
/* Remove quotes */
if (buffer[0] == '"') {
buffer++;
len = strlen (buffer);
if (buffer[len - 1] == '"') {
len--;
buffer[len] = 0;
}
}
Topics = strdup (buffer);
} else {
/* Other commands are ignored */