From: PatR Date: Mon, 15 Mar 2021 15:54:10 +0000 (-0700) Subject: \#perminv comments X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d28952507a726552de73f5495faa585e99f2e697;p=nethack \#perminv comments Fix a couple of comment typos and an instance of ambiguous wording. --- diff --git a/win/X11/winmenu.c b/win/X11/winmenu.c index 52ce7844c..a80c4f620 100644 --- a/win/X11/winmenu.c +++ b/win/X11/winmenu.c @@ -668,7 +668,7 @@ x11_scroll_perminv(int arg UNUSED) /* arg is always 1 */ * ^C will be treated like , leaving menu positioned as-is * and returning to play; or will be treated * like and , reseting the menu to its top and - * returning to play; other charcters will either be rejected by + * returning to play; other characters will either be rejected by * yn_function or stay here for scrolling. */ Strcat(menukeys, extrakeys); @@ -679,8 +679,8 @@ x11_scroll_perminv(int arg UNUSED) /* arg is always 1 */ /* normally the perm_invent menu is not flagged 'is_active' because it doesn't accept input, so menu_popdown() doesn't set the flag for the event loop to exit; force 'is_active' while this prompt - is in progress so that it won't be left pending if player closes - the menu via mouse */ + is in progress so that the prompt won't be left pending if + player closes the menu via mouse */ save_is_active = wp->menu_information->is_active; wp->menu_information->is_active = TRUE; ch = X11_yn_function_core("Inventory scroll:", menukeys, @@ -1205,7 +1205,8 @@ menu_create_buttons(struct xwindow *wp, Widget form, Widget under) num_args = 0; XtSetArg(args[num_args], nhStr(XtNfromVert), label); num_args++; XtSetArg(args[num_args], nhStr(XtNfromHoriz), invert); num_args++; - XtSetArg(args[num_args], nhStr(XtNsensitive), how != PICK_NONE); num_args++; + XtSetArg(args[num_args], nhStr(XtNsensitive), how != PICK_NONE); + num_args++; XtSetArg(args[num_args], nhStr(XtNtop), XtChainTop); num_args++; XtSetArg(args[num_args], nhStr(XtNbottom), XtChainTop); num_args++; XtSetArg(args[num_args], nhStr(XtNleft), XtChainLeft); num_args++; diff --git a/win/curses/cursinvt.c b/win/curses/cursinvt.c index b6d08b43f..f5fbee58b 100644 --- a/win/curses/cursinvt.c +++ b/win/curses/cursinvt.c @@ -399,7 +399,7 @@ curs_show_invt(WINDOW *win) /* some lines aren't shown; overwrite rightmost portion of last line with something like "[1-24 of 30>"; right justified so that the line might still show something useful; could be on - line of its own, in which case we needed to erase that first */ + line of its own, in which case we need to erase that first */ y = height - (1 - border); if ((unsigned) y == pi.inuseindx - pi.rowoffset) { wmove(win, y, x);