Correct display of tabified PICK_NONE menu
This commit is contained in:
+1
-3
@@ -1320,14 +1320,12 @@ menu_create_entries(struct xwindow *wp, struct menu *curr_menu)
|
|||||||
|
|
||||||
/* Does any line have a selector? */
|
/* Does any line have a selector? */
|
||||||
boolean any_canpick = FALSE;
|
boolean any_canpick = FALSE;
|
||||||
if (how != PICK_NONE) {
|
|
||||||
for (curr = curr_menu->base; curr; curr = curr->next) {
|
for (curr = curr_menu->base; curr; curr = curr->next) {
|
||||||
if (curr->identifier.a_void != NULL) {
|
if (curr->identifier.a_void != NULL) {
|
||||||
any_canpick = TRUE;
|
any_canpick = TRUE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
int *col_widths = NULL;
|
int *col_widths = NULL;
|
||||||
unsigned num_cols = 0;
|
unsigned num_cols = 0;
|
||||||
@@ -1342,7 +1340,7 @@ menu_create_entries(struct xwindow *wp, struct menu *curr_menu)
|
|||||||
String str = (String) curr->str;
|
String str = (String) curr->str;
|
||||||
int attr = ATR_NONE;
|
int attr = ATR_NONE;
|
||||||
int color = NO_COLOR;
|
int color = NO_COLOR;
|
||||||
boolean canpick = (how != PICK_NONE && curr->identifier.a_void);
|
boolean canpick = curr->identifier.a_void != NULL;
|
||||||
|
|
||||||
/* Add tabs if needed to align non-selector lines with selector lines */
|
/* Add tabs if needed to align non-selector lines with selector lines */
|
||||||
if (any_canpick && !canpick) {
|
if (any_canpick && !canpick) {
|
||||||
|
|||||||
Reference in New Issue
Block a user