Simplify add_menu, part 2
This commit is contained in:
+3
-9
@@ -4084,16 +4084,12 @@ status_hilite_menu_fld(int fld)
|
|||||||
hlstr = hlstr->next;
|
hlstr = hlstr->next;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
any = cg.zeroany;
|
|
||||||
Sprintf(buf, "No current hilites for %s", initblstats[fld].fldname);
|
Sprintf(buf, "No current hilites for %s", initblstats[fld].fldname);
|
||||||
add_menu(tmpwin, &nul_glyphinfo, &any, 0, 0, ATR_NONE, clr, buf,
|
add_menu_str(tmpwin, buf);
|
||||||
MENU_ITEMFLAGS_NONE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* separator line */
|
/* separator line */
|
||||||
any = cg.zeroany;
|
add_menu_str(tmpwin, "");
|
||||||
add_menu(tmpwin, &nul_glyphinfo, &any, 0, 0, ATR_NONE, clr, "",
|
|
||||||
MENU_ITEMFLAGS_NONE);
|
|
||||||
|
|
||||||
if (count) {
|
if (count) {
|
||||||
any = cg.zeroany;
|
any = cg.zeroany;
|
||||||
@@ -4219,9 +4215,7 @@ status_hilite_menu(void)
|
|||||||
clr, "View all hilites in config format",
|
clr, "View all hilites in config format",
|
||||||
MENU_ITEMFLAGS_NONE);
|
MENU_ITEMFLAGS_NONE);
|
||||||
|
|
||||||
any = cg.zeroany;
|
add_menu_str(tmpwin, "");
|
||||||
add_menu(tmpwin, &nul_glyphinfo, &any, 0, 0, ATR_NONE,
|
|
||||||
clr, "", MENU_ITEMFLAGS_NONE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < MAXBLSTATS; i++) {
|
for (i = 0; i < MAXBLSTATS; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user