1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

menu_leds_info: Revert the previous change.

Revert commit 2380ea9f1b,
"menu_leds_info: Don't call msg_text."  MSGBOX_SCROLLABLE requires
a modifiable copy of the string, and msg_text provides that.  To
reproduce the crash, run ELinks in a small window, select the English
language, and choose Help -> LED indicators.
This commit is contained in:
Kalle Olavi Niemitalo 2007-03-11 00:18:33 +02:00 committed by Kalle Olavi Niemitalo
parent 2380ea9f1b
commit 2bd2686672

View File

@ -301,20 +301,20 @@ menu_leds_info(struct terminal *term, void *xxx, void *xxxx)
{
/* If LEDs ever get more dynamic we might have to change this, but it
* should do for now. --jonas */
info_box(term, MSGBOX_SCROLLABLE,
info_box(term, MSGBOX_FREE_TEXT | MSGBOX_SCROLLABLE,
N_("LED indicators"), ALIGN_LEFT,
N_("What the different LEDs indicate:\n"
"\n"
"[SIJP--]\n"
" |||||`- Unused\n"
" ||||`-- Unused\n"
" |||`--- A JavaScript pop-up window was blocked\n"
" ||`---- A JavaScript error has occured\n"
" |`----- The state of insert mode for text-input form-fields\n"
" | 'i' means modeless, 'I' means insert mode is on\n"
" `------ Whether an SSL connection was used\n"
"\n"
"'-' generally indicates that the LED is off."));
msg_text(term, N_("What the different LEDs indicate:\n"
"\n"
"[SIJP--]\n"
" |||||`- Unused\n"
" ||||`-- Unused\n"
" |||`--- A JavaScript pop-up window was blocked\n"
" ||`---- A JavaScript error has occured\n"
" |`----- The state of insert mode for text-input form-fields\n"
" | 'i' means modeless, 'I' means insert mode is on\n"
" `------ Whether an SSL connection was used\n"
"\n"
"'-' generally indicates that the LED is off.")));
}