diff options
-rw-r--r-- | gnu/lib/libdialog/kernel.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gnu/lib/libdialog/kernel.c b/gnu/lib/libdialog/kernel.c index dd31047..7a67af6 100644 --- a/gnu/lib/libdialog/kernel.c +++ b/gnu/lib/libdialog/kernel.c @@ -328,14 +328,12 @@ void print_button(WINDOW *win, unsigned char *label, int y, int x, int selected) waddstr(win, selected ? "[" : " "); temp = strspn(label, " "); label += temp; - wattrset(win, selected ? button_label_active_attr : button_label_inactive_attr); for (i = 0; i < temp; i++) waddch(win, ' '); wattrset(win, selected ? button_key_active_attr : button_key_inactive_attr); waddch(win, label[0]); - wattrset(win, selected ? button_label_active_attr : button_label_inactive_attr); - waddstr(win, label+1); wattrset(win, selected ? button_active_attr : button_inactive_attr); + waddstr(win, label+1); waddstr(win, selected ? "]" : " "); wmove(win, y, x+temp+1); } |