From: nethack.allison Date: Sat, 27 Sep 2003 22:37:52 +0000 (+0000) Subject: ^X tabbed field support X-Git-Tag: MOVE2GIT~1748 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d024c09602f434cb126e6524c4fc2fc25abb585b;p=nethack ^X tabbed field support --- diff --git a/doc/fixes34.3 b/doc/fixes34.3 index 6a6508523..0909437e3 100644 --- a/doc/fixes34.3 +++ b/doc/fixes34.3 @@ -32,6 +32,7 @@ poles and grappling hook worked thru walls when wearing Eyes of the Overworld more tweaks to fog cloud behavior when dismounting by choice and unimpaired, try not to land on a boulder casting stone-to-flesh on self while wielding a statue caused problems +add tab support to menu strings for control-x minimal_enlightenment() Platform- and/or Interface-Specific Fixes diff --git a/src/cmd.c b/src/cmd.c index 61a2c105b..3c794b627 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -1134,9 +1134,16 @@ minimal_enlightenment() anything any; int genidx, n; char buf[BUFSZ], buf2[BUFSZ]; - static const char fmtstr[] = "%-15s: %-12s"; - static const char deity_fmtstr[] = "%-17s%s"; - + static const char untabbed_fmtstr[] = "%-15s: %-12s"; + static const char untabbed_deity_fmtstr[] = "%-17s%s"; + static const char tabbed_fmtstr[] = "%s:\t%-12s"; + static const char tabbed_deity_fmtstr[] = "%s\t%s"; + static const char *fmtstr; + static const char *deity_fmtstr; + + fmtstr = iflags.menu_tab_sep ? tabbed_fmtstr : untabbed_fmtstr; + deity_fmtstr = iflags.menu_tab_sep ? + tabbed_deity_fmtstr : untabbed_deity_fmtstr; any.a_void = 0; buf[0] = buf2[0] = '\0'; tmpwin = create_nhwindow(NHW_MENU);