]> granicus.if.org Git - nethack/commitdiff
curses perm_invent comment
authorPatR <rankin@nethack.org>
Mon, 15 Mar 2021 08:05:19 +0000 (01:05 -0700)
committerPatR <rankin@nethack.org>
Mon, 15 Mar 2021 08:05:19 +0000 (01:05 -0700)
Stripping article ("a ", "an ", "the ") off inventory items to
squeeze a little more info into truncated persistent inventory
was initially case insensitve.  That was removed because it isn't
needed but the comment still reflected it.

win/curses/cursinvt.c

index bee3793942997e3b2140dabff9dc309a1088b535..b6d08b43fc5d5ddd28a5ac075d8a99051eb76c50 100644 (file)
@@ -255,11 +255,11 @@ pi_article_skip(const char *str)
     unsigned skip = 0; /* number of chars to skip when displaying str */
 
     /*
-     * if (!strncmpi(str, "a ", 2))
+     * if (!strncmp(str, "a ", 2))
      *     skip = 2;
-     * else if (!strncmpi(str, "an ", 3))
+     * else if (!strncmp(str, "an ", 3))
      *     skip = 3;
-     * else if (!strncmpi(str, "the ", 4))
+     * else if (!strncmp(str, "the ", 4))
      *     skip = 4;
      */
     if (str[0] == 'a') {