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,9 +301,9 @@ menu_leds_info(struct terminal *term, void *xxx, void *xxxx)
{ {
/* If LEDs ever get more dynamic we might have to change this, but it /* If LEDs ever get more dynamic we might have to change this, but it
* should do for now. --jonas */ * should do for now. --jonas */
info_box(term, MSGBOX_SCROLLABLE, info_box(term, MSGBOX_FREE_TEXT | MSGBOX_SCROLLABLE,
N_("LED indicators"), ALIGN_LEFT, N_("LED indicators"), ALIGN_LEFT,
N_("What the different LEDs indicate:\n" msg_text(term, N_("What the different LEDs indicate:\n"
"\n" "\n"
"[SIJP--]\n" "[SIJP--]\n"
" |||||`- Unused\n" " |||||`- Unused\n"
@ -314,7 +314,7 @@ menu_leds_info(struct terminal *term, void *xxx, void *xxxx)
" | 'i' means modeless, 'I' means insert mode is on\n" " | 'i' means modeless, 'I' means insert mode is on\n"
" `------ Whether an SSL connection was used\n" " `------ Whether an SSL connection was used\n"
"\n" "\n"
"'-' generally indicates that the LED is off.")); "'-' generally indicates that the LED is off.")));
} }