]> granicus.if.org Git - nethack/commitdiff
Fix #H4369: what-is reporting singular of null when given only spaces
authorPasi Kallinen <paxed@alt.org>
Sat, 4 Jun 2016 05:01:55 +0000 (08:01 +0300)
committerPasi Kallinen <paxed@alt.org>
Sat, 4 Jun 2016 05:02:08 +0000 (08:02 +0300)
src/pager.c

index da529f253991ca5d2cf69ca642c49a7b3ab0c34a..081bd190ef6674e4c2d6e87321df0dad83451694 100644 (file)
@@ -1060,6 +1060,7 @@ coord *click_cc;
         case '?':
             from_screen = FALSE;
             getlin("Specify what? (type the word)", out_str);
+            mungspaces(out_str);
             if (out_str[0] == '\0' || out_str[0] == '\033')
                 return 0;