]> granicus.if.org Git - nethack/commitdiff
\#perminv comments
authorPatR <rankin@nethack.org>
Mon, 15 Mar 2021 15:54:10 +0000 (08:54 -0700)
committerPatR <rankin@nethack.org>
Mon, 15 Mar 2021 15:54:10 +0000 (08:54 -0700)
Fix a couple of comment typos and an instance of ambiguous wording.

win/X11/winmenu.c
win/curses/cursinvt.c

index 52ce7844cc06752a3254de26d403a2fa41809c04..a80c4f62004bbc8a66e3746adf0072a8fbeec5e1 100644 (file)
@@ -668,7 +668,7 @@ x11_scroll_perminv(int arg UNUSED) /* arg is always 1 */
          * ^C will be treated like <escape>, leaving menu positioned as-is
          * and returning to play; <delete> or <backspace> will be treated
          * like <return> and <space>, 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++;
index b6d08b43fc5d5ddd28a5ac075d8a99051eb76c50..f5fbee58b69cd25d896acc6ca207af8092777d39 100644 (file)
@@ -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);