mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
* man2hlp.c (handle_command): Remove quotes from TOPIC.
This commit is contained in:
parent
7aa2ae12c7
commit
f9a0f1440a
@ -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.
|
||||
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user