mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Merge branch '2350_buttonbar_numbers'
* 2350_buttonbar_numbers: Ticket #2350: show numbers for all Fx keys as for enabled as for disabled.
This commit is contained in:
commit
7680906d6f
@ -3126,11 +3126,7 @@ buttonbar_callback (Widget * w, widget_msg_t msg, int parm)
|
||||
break;
|
||||
|
||||
tty_setcolor (BUTTONBAR_HOTKEY_COLOR);
|
||||
/* don't show num of undefined button */
|
||||
if ((bb->labels[i].text == NULL) || (bb->labels[i].text[0] == '\0'))
|
||||
tty_print_string (" ");
|
||||
else
|
||||
tty_printf ("%2d", i + 1);
|
||||
tty_printf ("%2d", i + 1);
|
||||
|
||||
tty_setcolor (BUTTONBAR_BUTTON_COLOR);
|
||||
text = (bb->labels[i].text != NULL) ? bb->labels[i].text : "";
|
||||
|
Loading…
Reference in New Issue
Block a user