* help.c (help_handle_key): Sanity check for broken help files.
From David Martin <dmartina@excite.com>
Этот коммит содержится в:
родитель
ed9d61551d
Коммит
b248f6bb32
@ -1,3 +1,8 @@
|
|||||||
|
2002-09-05 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* help.c (help_handle_key): Sanity check for broken help files.
|
||||||
|
From David Martin <dmartina@excite.com>
|
||||||
|
|
||||||
2002-09-03 Pavel Roskin <proski@gnu.org>
|
2002-09-03 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* global.h: Eliminate xgetch, update all dependencies.
|
* global.h: Eliminate xgetch, update all dependencies.
|
||||||
|
11
src/help.c
11
src/help.c
@ -690,10 +690,13 @@ static int help_handle_key (struct Dlg_head *h, int c)
|
|||||||
while (*new_item && *new_item != CHAR_NODE_END)
|
while (*new_item && *new_item != CHAR_NODE_END)
|
||||||
new_item++;
|
new_item++;
|
||||||
if (*++new_item == '['){
|
if (*++new_item == '['){
|
||||||
while (*new_item != ']')
|
while (*++new_item) {
|
||||||
new_item++;
|
if (*new_item == ']' && *++newitem && *++newitem) {
|
||||||
currentpoint = new_item + 2;
|
currentpoint = new_item;
|
||||||
selected_item = NULL;
|
selected_item = NULL;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user