From: nethack.allison Date: Thu, 14 Feb 2002 00:55:17 +0000 (+0000) Subject: from X-Git-Tag: MOVE2GIT~3178 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dafae59205f1bce641deb784921e00b95cef3beb;p=nethack from ( #enhance screen is still broken though). I attached a small patch with minor adjustments. --- diff --git a/src/spell.c b/src/spell.c index 03fb74863..68967ff62 100644 --- a/src/spell.c +++ b/src/spell.c @@ -1001,11 +1001,11 @@ int *spell_no; if (!iflags.menu_tab_sep) Sprintf(buf, "%-20s Level %-12s Fail", " Name", "Category"); else - Sprintf(buf, "%-20s\tLevel\tCategory\tFail", "Name"); + Sprintf(buf, "Name\tLevel\tCategory\tFail"); add_menu(tmpwin, NO_GLYPH, &any, 0, 0, ATR_NONE, buf, MENU_UNSELECTED); for (i = 0; i < MAXSPELL && spellid(i) != NO_SPELL; i++) { Sprintf(buf, iflags.menu_tab_sep ? - "%s\t%2d%s\t%s\t%3d%%" : "%-20s %2d%s %-12s %3d%%", + "%s\t%-d%s\t%s\t%-d%%" : "%-20s %2d%s %-12s %3d%%", spellname(i), spellev(i), spellknow(i) ? " " : "*", spelltypemnemonic(spell_skilltype(spellid(i))), diff --git a/win/win32/mhmenu.c b/win/win32/mhmenu.c index 4dafda448..ac942dd37 100644 --- a/win/win32/mhmenu.c +++ b/win/win32/mhmenu.c @@ -485,7 +485,7 @@ void onMSNHCommand(HWND hWnd, WPARAM wParam, LPARAM lParam) p = strchr(data->menu.items[new_item].str, '\t'); while( p ) { data->menu.tab_stop_size = - max( data->menu.tab_stop_size, p - p1 ); + max( data->menu.tab_stop_size, p - p1 + 1 ); p1 = p; p = strchr(p+1, '\t'); }